socks 0.1.10.beta → 0.2.10.beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/bin/socks CHANGED
@@ -81,8 +81,8 @@ group :development, :test do
81
81
  end"
82
82
 
83
83
  rakefile = "# Socks generates many helpful Rake tasks for you!
84
- require \"socks\"
85
- Socks::Tasks.install"
84
+ require \"socks/tasks/rake_tasks\"
85
+ require File.expand_path(\"../lib/custom_tasks.rb\", __FILE__)"
86
86
 
87
87
  gitignore = ".DS_Store
88
88
  Gemfile.lock"
@@ -130,6 +130,10 @@ app = DoIt.new do
130
130
  end
131
131
 
132
132
  app.list # Format list"
133
+
134
+ custom_tasks = "# Define your own custom Rake Tasks here.
135
+ # These Rake tasks will be automatically included in the main Rakefile.
136
+ # For more on Rake please see http://rake.rubyforge.org/"
133
137
 
134
138
 
135
139
  # -------------------------------------------------------------------------
@@ -138,9 +142,10 @@ app.list # Format list"
138
142
 
139
143
  FileUtils.mkdir app
140
144
  FileUtils.cd app
141
- FileUtils.mkdir %w( config spec )
145
+ FileUtils.mkdir %w( config spec lib )
142
146
  FileUtils.touch %w( spec/spec_helper.rb .rspec ) # Spec file(s)
143
147
  FileUtils.touch %w( Dofile ) # Todo manager
148
+ FileUtils.touch %w( lib/custom_tasks.rb )
144
149
  FileUtils.touch %w( config/app_config.rb )
145
150
 
146
151
  # -------------------------------------------------------------------------
@@ -155,6 +160,7 @@ app.list # Format list"
155
160
  system("echo '#{gitignore}' >> .gitignore")
156
161
  system("echo '#{procfile}' >> Procfile")
157
162
  system("echo '#{tasks}' >> Dofile")
163
+ system("echo '#{custom_tasks}' >> lib/custom_tasks.rb")
158
164
 
159
165
  system("echo '#{router_template}' >> config/router.rb")
160
166
  system("echo '#{config_template}' >> config/app_config.rb")
@@ -0,0 +1,6 @@
1
+ require 'socks/tasks/rake_tasks'
2
+
3
+ module Socks
4
+ class Helpers
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ require 'rake'
2
+
3
+ desc 'Run your RSpec tests'
4
+ task :test do
5
+ sh 'rspec .'
6
+ end
data/lib/socks/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Socks
2
2
 
3
3
  # The current version of Socks
4
- VERSION = "0.1.10.beta"
4
+ VERSION = "0.2.10.beta"
5
5
 
6
6
  end
data/lib/socks.rb CHANGED
@@ -1,6 +1,9 @@
1
1
  require "socks/version"
2
2
  require "socks/config"
3
3
  require "socks/router"
4
+ require "socks/helpers"
5
+
6
+ require "socks/tasks/rake_tasks"
4
7
 
5
8
  module Socks
6
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: socks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10.beta
4
+ version: 0.2.10.beta
5
5
  prerelease: 7
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-05 00:00:00.000000000 Z
12
+ date: 2012-05-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack
@@ -169,6 +169,8 @@ files:
169
169
  - lib/socks/config.rb
170
170
  - lib/socks/router.rb
171
171
  - lib/socks/router_helpers.rb
172
+ - lib/socks/helpers.rb
173
+ - lib/socks/tasks/rake_tasks.rb
172
174
  homepage: ''
173
175
  licenses: []
174
176
  post_install_message: