Skip to content

Commit

Permalink
Become a gem!
Browse files Browse the repository at this point in the history
- add "attache" command
- refactor "require" and $LOAD_PATH
- fixup/updated dependencies along the way
  • Loading branch information
choonkeat committed Oct 21, 2015
1 parent 3be2c4e commit ec5ee76
Show file tree
Hide file tree
Showing 12 changed files with 295 additions and 132 deletions.
24 changes: 2 additions & 22 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
# A sample Gemfile
source "https://rubygems.org"
source 'https://rubygems.org'

ruby '2.2.3'

gem 'rack'
gem 'paperclip'
gem 'puma'
gem 'fog'
gem 'excon', '~> 0.45.4'

gem 'sys-filesystem'
gem 'disk_store'

gem 'foreman'
gem 'sidekiq'
gem 'sucker_punch' # single-process Ruby asynchronous processing library

group :development, :test do
gem 'rspec'
gem 'shoulda', require: false
gem 'guard-rspec', require: false
end
gemspec
177 changes: 107 additions & 70 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
PATH
remote: .
specs:
attache (1.0.0)
celluloid (< 0.17)
connection_pool (~> 2.2)
disk_store (~> 0)
excon (~> 0.45)
fog (~> 1.34)
foreman (~> 0)
paperclip (~> 4.3)
puma (~> 2.14)
rack (~> 1.6)
sidekiq (~> 3.4)
sucker_punch (~> 1.5)
sys-filesystem (~> 0)

GEM
remote: https://rubygems.org/
specs:
CFPropertyList (2.3.1)
CFPropertyList (2.3.2)
activemodel (4.2.1)
activesupport (= 4.2.1)
builder (~> 3.1)
Expand All @@ -19,22 +36,27 @@ GEM
cocaine (0.5.7)
climate_control (>= 0.0.3, < 1.0)
coderay (1.1.0)
connection_pool (2.1.0)
connection_pool (2.2.0)
diff-lcs (1.2.5)
disk_store (0.4.1)
celluloid
rake
excon (0.45.4)
ffi (1.9.8)
ffi (1.9.10)
fission (0.5.0)
CFPropertyList (~> 2.2)
fog (1.28.0)
fog (1.35.0)
fog-aliyun
fog-atmos
fog-aws (~> 0.0)
fog-aws (>= 0.6.0)
fog-brightbox (~> 0.4)
fog-core (~> 1.27, >= 1.27.3)
fog-ecloud
fog-core (~> 1.32)
fog-dynect (~> 0.0.2)
fog-ecloud (~> 0.1)
fog-google (>= 0.1.1)
fog-json
fog-local
fog-powerdns (>= 0.1.1)
fog-profitbricks
fog-radosgw (>= 0.0.2)
fog-riakcs
Expand All @@ -45,128 +67,152 @@ GEM
fog-terremark
fog-vmfusion
fog-voxel
fog-xenserver
fog-xml (~> 0.1.1)
ipaddress (~> 0.5)
nokogiri (~> 1.5, >= 1.5.11)
nokogiri
fog-aliyun (0.0.10)
fog-core (~> 1.27)
fog-json (~> 1.0)
ipaddress (~> 0.8)
xml-simple (~> 1.1)
fog-atmos (0.1.0)
fog-core
fog-xml
fog-aws (0.1.1)
fog-aws (0.7.6)
fog-core (~> 1.27)
fog-json (~> 1.0)
fog-xml (~> 0.1)
ipaddress (~> 0.8)
fog-brightbox (0.7.1)
fog-brightbox (0.9.0)
fog-core (~> 1.22)
fog-json
inflecto (~> 0.0.2)
fog-core (1.29.0)
fog-core (1.32.1)
builder
excon (~> 0.38)
excon (~> 0.45)
formatador (~> 0.2)
mime-types
net-scp (~> 1.1)
net-ssh (>= 2.1.3)
fog-ecloud (0.0.2)
fog-dynect (0.0.2)
fog-core
fog-json
fog-xml
fog-ecloud (0.3.0)
fog-core
fog-xml
fog-google (0.1.1)
fog-core
fog-json
fog-xml
fog-json (1.0.0)
multi_json (~> 1.0)
fog-profitbricks (0.0.2)
fog-json (1.0.2)
fog-core (~> 1.0)
multi_json (~> 1.10)
fog-local (0.2.1)
fog-core (~> 1.27)
fog-powerdns (0.1.1)
fog-core (~> 1.27)
fog-json (~> 1.0)
fog-xml (~> 0.1)
fog-profitbricks (0.0.5)
fog-core
fog-xml
nokogiri
fog-radosgw (0.0.3)
fog-radosgw (0.0.4)
fog-core (>= 1.21.0)
fog-json
fog-xml (>= 0.0.1)
fog-riakcs (0.1.0)
fog-core
fog-json
fog-xml
fog-sakuracloud (1.0.0)
fog-sakuracloud (1.3.3)
fog-core
fog-json
fog-serverlove (0.1.1)
fog-serverlove (0.1.2)
fog-core
fog-json
fog-softlayer (0.4.1)
fog-softlayer (1.0.0)
fog-core
fog-json
fog-storm_on_demand (0.1.0)
fog-storm_on_demand (0.1.1)
fog-core
fog-json
fog-terremark (0.0.4)
fog-terremark (0.1.0)
fog-core
fog-xml
fog-vmfusion (0.0.1)
fog-vmfusion (0.1.0)
fission
fog-core
fog-voxel (0.0.2)
fog-voxel (0.1.0)
fog-core
fog-xml
fog-xml (0.1.1)
fog-xenserver (0.2.2)
fog-core
fog-xml
fog-xml (0.1.2)
fog-core
nokogiri (~> 1.5, >= 1.5.11)
foreman (0.78.0)
thor (~> 0.19.1)
formatador (0.2.5)
guard (2.12.5)
guard (2.13.0)
formatador (>= 0.2.4)
listen (~> 2.7)
listen (>= 2.7, <= 4.0)
lumberjack (~> 1.0)
nenv (~> 0.1)
notiffany (~> 0.0)
pry (>= 0.9.12)
shellany (~> 0.0)
thor (>= 0.18.1)
guard-compat (1.2.1)
guard-rspec (4.5.0)
guard-rspec (4.6.4)
guard (~> 2.1)
guard-compat (~> 1.1)
rspec (>= 2.99.0, < 4.0)
hitimes (1.2.2)
hitimes (1.2.3)
i18n (0.7.0)
inflecto (0.0.2)
ipaddress (0.8.0)
json (1.8.2)
listen (2.9.0)
celluloid (>= 0.15.2)
listen (3.0.3)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
lumberjack (1.0.9)
method_source (0.8.2)
mime-types (2.4.3)
mime-types (2.6.2)
mimemagic (0.3.0)
mini_portile (0.6.2)
minitest (5.5.1)
multi_json (1.11.0)
multi_json (1.11.2)
nenv (0.2.0)
net-scp (1.2.1)
net-ssh (>= 2.6.5)
net-ssh (2.9.2)
net-ssh (3.0.1)
nokogiri (1.6.6.2)
mini_portile (~> 0.6.0)
notiffany (0.0.6)
notiffany (0.0.8)
nenv (~> 0.1)
shellany (~> 0.0)
paperclip (4.2.1)
activemodel (>= 3.0.0)
activesupport (>= 3.0.0)
cocaine (~> 0.5.3)
paperclip (4.3.1)
activemodel (>= 3.2.0)
activesupport (>= 3.2.0)
cocaine (~> 0.5.5)
mime-types
pry (0.10.1)
mimemagic (= 0.3.0)
pry (0.10.2)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
puma (2.11.1)
rack (>= 1.1, < 2.0)
rack (1.6.0)
puma (2.14.0)
rack (1.6.4)
rake (10.4.2)
rb-fsevent (0.9.4)
rb-fsevent (0.9.6)
rb-inotify (0.9.5)
ffi (>= 0.5.0)
redis (3.2.0)
redis-namespace (1.5.1)
redis (3.2.1)
redis-namespace (1.5.2)
redis (~> 3.0, >= 3.0.4)
rspec (3.2.0)
rspec-core (~> 3.2.0)
Expand All @@ -188,41 +234,32 @@ GEM
shoulda-context (1.2.1)
shoulda-matchers (2.8.0)
activesupport (>= 3.0.0)
sidekiq (3.3.0)
celluloid (>= 0.16.0)
connection_pool (>= 2.0.0)
json
redis (>= 3.0.6)
redis-namespace (>= 1.3.1)
slop (3.6.0)
sucker_punch (1.4.0)
sidekiq (3.4.2)
celluloid (~> 0.16.0)
sys-filesystem (1.1.4)
ffi
connection_pool (~> 2.2, >= 2.2.0)
json (~> 1.0)
redis (~> 3.2, >= 3.2.1)
redis-namespace (~> 1.5, >= 1.5.2)
slop (3.6.0)
sucker_punch (1.5.1)
celluloid (= 0.16.0)
sys-filesystem (0.3.4)
thor (0.19.1)
thread_safe (0.3.5)
timers (4.0.1)
timers (4.0.4)
hitimes
tzinfo (1.2.2)
thread_safe (~> 0.1)
xml-simple (1.1.5)

PLATFORMS
ruby

DEPENDENCIES
disk_store
excon (~> 0.45.4)
fog
foreman
guard-rspec
paperclip
puma
rack
rspec
shoulda
sidekiq
sucker_punch
sys-filesystem
attache!
guard-rspec (~> 4.6)
rspec (~> 3.2)
shoulda (~> 3.5)

BUNDLED WITH
1.10.6
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
web: bundle exec puma -C config/puma.rb
worker: bundle exec sidekiq -e production -q attache_vhost_jobs -r ./boot.rb
worker: bundle exec sidekiq -e production -q attache_vhost_jobs -r ./lib/attache/boot.rb
Loading

0 comments on commit ec5ee76

Please sign in to comment.