hobo_support 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/hobo_support.gemspec +1 -1
- data/lib/hobo_support/command.rb +3 -1
- data/lib/hobo_support/common_tasks.rb +6 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9fca1c325fd08808e61ebf9949b68a1c3a7167d
|
4
|
+
data.tar.gz: e4f89e51859da8bc3ab22437800de5665db3ff10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 830a091a761d72b8c737284138fcbe160d0365508bbf26926061f0533826ad0980c6a38a68ac0dd6c960d28966f134dc6f927e02208f1a62a93a9d650abe30de
|
7
|
+
data.tar.gz: d5b23310c903630513ac262eed2a6ffb62631ccbb5e5419beee6e9f4a3b44348d0fda2059a40b30a2451248cb010a59edb33128994abcef68d1f99652df83015
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.
|
1
|
+
2.1.2
|
data/hobo_support.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.description = 'Core Ruby extensions from the Hobo project'
|
13
13
|
|
14
14
|
s.add_runtime_dependency('rails', ["~> 4.0.2"])
|
15
|
-
s.add_development_dependency('rubydoctest', [">= 0"])
|
15
|
+
# s.add_development_dependency('rubydoctest', [">= 0"])
|
16
16
|
|
17
17
|
s.files = `git ls-files -x #{name}/* -z`.split("\0")
|
18
18
|
|
data/lib/hobo_support/command.rb
CHANGED
@@ -150,7 +150,9 @@ say "Please, remember to run `hobo g setup_wizard` from the application root dir
|
|
150
150
|
end
|
151
151
|
end
|
152
152
|
puts "Generating Rails infrastructure..."
|
153
|
-
|
153
|
+
# If the RAILS_VERSION variable exists, pass it to the rails new command
|
154
|
+
rails_version = ENV['RAILS_VERSION'] ? "_#{ENV['RAILS_VERSION']}_" : ""
|
155
|
+
system "rails #{rails_version} new #{app_name} #{ARGV * ' '} -m #{template_path}"
|
154
156
|
File.delete template_path
|
155
157
|
|
156
158
|
when /^(g|generate|destroy)$/
|
@@ -25,9 +25,14 @@ namespace :test do
|
|
25
25
|
sh %(echo "" >> Gemfile)
|
26
26
|
sh %(echo "gem 'irt', :group => :development" >> Gemfile) # to make the bundler happy
|
27
27
|
sh %(echo "gem 'therubyracer'" >> Gemfile)
|
28
|
+
sh %(echo "gem 'protected_attributes'" >> Gemfile)
|
29
|
+
sh %(bundle install)
|
28
30
|
sh %(echo "" > app/models/.gitignore) # because git reset --hard would rm the dir
|
29
31
|
rm %(.gitignore) # we need to reset everything in a testapp
|
30
|
-
sh %(git init
|
32
|
+
sh %(git init)
|
33
|
+
sh %(git config user.email "someone@example.com")
|
34
|
+
sh %(git config user.name "Someone")
|
35
|
+
sh %(git add . && git commit -m "initial commit")
|
31
36
|
puts %(The testapp has been created in '#{TESTAPP_PATH}')
|
32
37
|
else
|
33
38
|
chdir TESTAPP_PATH
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hobo_support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Locke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 4.0.2
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rubydoctest
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
27
|
description: Core Ruby extensions from the Hobo project
|
42
28
|
email: tom@tomlocke.com
|
43
29
|
executables: []
|