wagon_rails 0.4.5 → 0.4.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e458fb32b803cee5752b38d1b4495534ffd1a3c0
4
- data.tar.gz: 89ba7a5db760eb51fed6f9dd48e49926fc16428f
3
+ metadata.gz: 101f5777d7f8ff5143d2ecf6f8913939e596ca53
4
+ data.tar.gz: 8fa073d4efc86ff13b7d6f25848d66fac7970e26
5
5
  SHA512:
6
- metadata.gz: ecb3379164c74e240974ee032a93d07717cdf842fac1d31558dbefd8cd7efcd34ebbfe822fd6ba457e86c0599f8dcf42bb1ab0d41188fa42e6cbe7bb79b5305f
7
- data.tar.gz: 94b247f3e1b7c627a4a9ef9258c77040d040eb20c0c264e6fad3adeb200cad365afc696615577224d2e5ae401ece964f57cfbc9495c71c741d1cfa72e45b0ff0
6
+ metadata.gz: 80b68176f1268d5d35ae34c5120b5a54ec8bafd69c78b2c68fc192b59ff09a693c84da49401aad80f1a8d78f5825039f1aca1e13b46de047370635b0e3110b66
7
+ data.tar.gz: 1d45893a873a0c1ab1782bda7913d2500f76e029ebabc9abff739bef20141694d1c7c145a462f9cd3751ce68231e106bdff011e5f45222407698f2f2c3270d54
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.2.0
1
+ 2.2.2
data/Gemfile.lock CHANGED
@@ -1,43 +1,44 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- wagon_rails (0.1.0)
4
+ wagon_rails (0.4.6)
5
5
  bundler (~> 1.3)
6
- rails (= 4.2.0)
6
+ colorize (~> 0.7)
7
+ rails (= 4.2.3)
7
8
 
8
9
  GEM
9
10
  remote: https://rubygems.org/
10
11
  specs:
11
- actionmailer (4.2.0)
12
- actionpack (= 4.2.0)
13
- actionview (= 4.2.0)
14
- activejob (= 4.2.0)
12
+ actionmailer (4.2.3)
13
+ actionpack (= 4.2.3)
14
+ actionview (= 4.2.3)
15
+ activejob (= 4.2.3)
15
16
  mail (~> 2.5, >= 2.5.4)
16
17
  rails-dom-testing (~> 1.0, >= 1.0.5)
17
- actionpack (4.2.0)
18
- actionview (= 4.2.0)
19
- activesupport (= 4.2.0)
20
- rack (~> 1.6.0)
18
+ actionpack (4.2.3)
19
+ actionview (= 4.2.3)
20
+ activesupport (= 4.2.3)
21
+ rack (~> 1.6)
21
22
  rack-test (~> 0.6.2)
22
23
  rails-dom-testing (~> 1.0, >= 1.0.5)
23
- rails-html-sanitizer (~> 1.0, >= 1.0.1)
24
- actionview (4.2.0)
25
- activesupport (= 4.2.0)
24
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
25
+ actionview (4.2.3)
26
+ activesupport (= 4.2.3)
26
27
  builder (~> 3.1)
27
28
  erubis (~> 2.7.0)
28
29
  rails-dom-testing (~> 1.0, >= 1.0.5)
29
- rails-html-sanitizer (~> 1.0, >= 1.0.1)
30
- activejob (4.2.0)
31
- activesupport (= 4.2.0)
30
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
31
+ activejob (4.2.3)
32
+ activesupport (= 4.2.3)
32
33
  globalid (>= 0.3.0)
33
- activemodel (4.2.0)
34
- activesupport (= 4.2.0)
34
+ activemodel (4.2.3)
35
+ activesupport (= 4.2.3)
35
36
  builder (~> 3.1)
36
- activerecord (4.2.0)
37
- activemodel (= 4.2.0)
38
- activesupport (= 4.2.0)
37
+ activerecord (4.2.3)
38
+ activemodel (= 4.2.3)
39
+ activesupport (= 4.2.3)
39
40
  arel (~> 6.0)
40
- activesupport (4.2.0)
41
+ activesupport (4.2.3)
41
42
  i18n (~> 0.7)
42
43
  json (~> 1.7, >= 1.7.7)
43
44
  minitest (~> 5.1)
@@ -45,86 +46,62 @@ GEM
45
46
  tzinfo (~> 1.1)
46
47
  arel (6.0.0)
47
48
  builder (3.2.2)
48
- capybara (2.3.0)
49
- mime-types (>= 1.16)
50
- nokogiri (>= 1.3.3)
51
- rack (>= 1.0.0)
52
- rack-test (>= 0.5.4)
53
- xpath (~> 2.0)
54
- diff-lcs (1.2.5)
49
+ colorize (0.7.5)
55
50
  erubis (2.7.0)
56
- globalid (0.3.3)
51
+ globalid (0.3.5)
57
52
  activesupport (>= 4.1.0)
58
- hike (1.2.3)
59
53
  i18n (0.7.0)
60
- json (1.8.2)
61
- loofah (2.0.1)
54
+ json (1.8.3)
55
+ loofah (2.0.2)
62
56
  nokogiri (>= 1.5.9)
63
57
  mail (2.6.3)
64
58
  mime-types (>= 1.16, < 3)
65
- mime-types (2.4.3)
66
- mini_portile (0.6.0)
67
- minitest (5.5.1)
68
- multi_json (1.10.1)
69
- nokogiri (1.6.2.1)
70
- mini_portile (= 0.6.0)
71
- rack (1.6.0)
72
- rack-test (0.6.2)
59
+ mime-types (2.6.1)
60
+ mini_portile (0.6.2)
61
+ minitest (5.7.0)
62
+ nokogiri (1.6.6.2)
63
+ mini_portile (~> 0.6.0)
64
+ rack (1.6.4)
65
+ rack-test (0.6.3)
73
66
  rack (>= 1.0)
74
- rails (4.2.0)
75
- actionmailer (= 4.2.0)
76
- actionpack (= 4.2.0)
77
- actionview (= 4.2.0)
78
- activejob (= 4.2.0)
79
- activemodel (= 4.2.0)
80
- activerecord (= 4.2.0)
81
- activesupport (= 4.2.0)
67
+ rails (4.2.3)
68
+ actionmailer (= 4.2.3)
69
+ actionpack (= 4.2.3)
70
+ actionview (= 4.2.3)
71
+ activejob (= 4.2.3)
72
+ activemodel (= 4.2.3)
73
+ activerecord (= 4.2.3)
74
+ activesupport (= 4.2.3)
82
75
  bundler (>= 1.3.0, < 2.0)
83
- railties (= 4.2.0)
76
+ railties (= 4.2.3)
84
77
  sprockets-rails
85
78
  rails-deprecated_sanitizer (1.0.3)
86
79
  activesupport (>= 4.2.0.alpha)
87
- rails-dom-testing (1.0.5)
80
+ rails-dom-testing (1.0.6)
88
81
  activesupport (>= 4.2.0.beta, < 5.0)
89
82
  nokogiri (~> 1.6.0)
90
83
  rails-deprecated_sanitizer (>= 1.0.1)
91
- rails-html-sanitizer (1.0.1)
84
+ rails-html-sanitizer (1.0.2)
92
85
  loofah (~> 2.0)
93
- railties (4.2.0)
94
- actionpack (= 4.2.0)
95
- activesupport (= 4.2.0)
86
+ railties (4.2.3)
87
+ actionpack (= 4.2.3)
88
+ activesupport (= 4.2.3)
96
89
  rake (>= 0.8.7)
97
90
  thor (>= 0.18.1, < 2.0)
98
91
  rake (10.4.2)
99
- rspec (2.99.0)
100
- rspec-core (~> 2.99.0)
101
- rspec-expectations (~> 2.99.0)
102
- rspec-mocks (~> 2.99.0)
103
- rspec-core (2.99.0)
104
- rspec-expectations (2.99.0)
105
- diff-lcs (>= 1.1.3, < 2.0)
106
- rspec-mocks (2.99.0)
107
- sprockets (2.12.3)
108
- hike (~> 1.2)
109
- multi_json (~> 1.0)
92
+ sprockets (3.2.0)
110
93
  rack (~> 1.0)
111
- tilt (~> 1.1, != 1.3.0)
112
- sprockets-rails (2.2.4)
94
+ sprockets-rails (2.3.2)
113
95
  actionpack (>= 3.0)
114
96
  activesupport (>= 3.0)
115
97
  sprockets (>= 2.8, < 4.0)
116
98
  thor (0.19.1)
117
- thread_safe (0.3.4)
118
- tilt (1.4.1)
99
+ thread_safe (0.3.5)
119
100
  tzinfo (1.2.2)
120
101
  thread_safe (~> 0.1)
121
- xpath (2.0.0)
122
- nokogiri (~> 1.3)
123
102
 
124
103
  PLATFORMS
125
104
  ruby
126
105
 
127
106
  DEPENDENCIES
128
- capybara (~> 2.2, >= 2.2.0)
129
- rspec (~> 2.0)
130
107
  wagon_rails!
data/README.md CHANGED
@@ -63,7 +63,6 @@ It includes application gems like:
63
63
  - [Simple Form](https://github.com/plataformatec/simple_form) for form markup and style
64
64
  - [High Voltage](https://github.com/thoughtbot/high_voltage) for static pages
65
65
  - [Devise](https://github.com/plataformatec/devise) for user authentication
66
- - [Pundit](https://github.com/elabs/pundit) for user authorization
67
66
  - [Paperclip](https://github.com/thoughtbot/paperclip) for file attachment and S3 upload.
68
67
  - [Bootstrap](https://github.com/twbs/bootstrap-sass) to jump start the design with a solid responsive grid and basic UI components.
69
68
  - [Font Awesome](https://github.com/FortAwesome/font-awesome-sass) to get a nice iconography
@@ -87,6 +86,16 @@ add a `deploy` script to the `bin` repository. Simply deploy with:
87
86
  $ deploy # git push heroku + rake db:migrate + restart
88
87
  ```
89
88
 
89
+ ## Option
90
+
91
+ You can enable [Pundit](https://github.com/elabs/pundit) for user authorization, open
92
+ the Gemfile, uncomment the `pundit` gem. Then:
93
+
94
+ ```bash
95
+ $ bundle install
96
+ $ rails g pundit:install
97
+ ```
98
+
90
99
  ## Credits
91
100
 
92
101
  WagonRails is a fork of [thoughtbot/suspenders](https://github.com/thoughtbot/suspenders),
@@ -169,10 +169,9 @@ module WagonRails
169
169
  end
170
170
 
171
171
  def setup_stylesheets
172
- remove_file 'app/assets/stylesheets/application.css'
173
- run 'rm -r app/assets/stylesheets'
174
- run 'curl -L https://github.com/lewagon/rails-stylesheets/archive/master.zip > stylesheets.zip'
175
- run 'unzip stylesheets.zip -d app/assets && rm stylesheets.zip && mv app/assets/rails-stylesheets-master app/assets/stylesheets'
172
+ run 'rm -rf app/assets/stylesheets'
173
+ run 'curl -L https://github.com/lewagon/rails-stylesheets/archive/master.zip > app/assets/stylesheets.zip'
174
+ run 'cd app/assets && unzip stylesheets.zip && rm stylesheets.zip && mv rails-stylesheets-master stylesheets & cd ../..'
176
175
  end
177
176
 
178
177
  def setup_javascripts
@@ -287,8 +286,12 @@ production:
287
286
  generate 'devise User'
288
287
  end
289
288
 
290
- def generate_pundit
291
- generate 'pundit:install'
289
+ # def generate_pundit
290
+ # generate 'pundit:install'
291
+ # end
292
+
293
+ def generate_annotate
294
+ generate 'annotate:install'
292
295
  end
293
296
 
294
297
  def install_navbar
@@ -101,6 +101,7 @@ module WagonRails
101
101
  build :setup_foreman
102
102
  build :setup_paperclip
103
103
  build :copy_application_yml
104
+ build :generate_annotate
104
105
  end
105
106
 
106
107
  def setup_stylesheets
@@ -126,7 +127,7 @@ module WagonRails
126
127
  build :generate_user
127
128
  build :install_navbar
128
129
  build :generate_devise_views
129
- build :generate_pundit
130
+ # build :generate_pundit
130
131
  build :setup_application_controller
131
132
  end
132
133
 
@@ -177,14 +178,17 @@ module WagonRails
177
178
  end
178
179
 
179
180
  def first_commit
180
- build :commit, "New rails app generated with lewagon/wagon-rails gem"
181
+ build :commit, "New rails app generated with lewagon/wagon_rails gem"
181
182
  end
182
183
 
183
184
  def first_push
184
- build :first_push
185
+ unless options[:skip_github]
186
+ build :first_push
187
+ end
185
188
  end
186
189
 
187
190
  def outro
191
+ run "cd #{defined_app_name}"
188
192
  say ""
189
193
  say "----> Open config/initializers/devise.rb and update the `mailer_sender`"
190
194
  say ""
@@ -1,5 +1,5 @@
1
1
  module WagonRails
2
- RAILS_VERSION = "4.2.0"
2
+ RAILS_VERSION = "4.2.3"
3
3
  RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip
4
- VERSION = "0.4.5"
4
+ VERSION = "0.4.6"
5
5
  end
@@ -9,7 +9,7 @@ gem "simple_form"
9
9
  gem "country_select"
10
10
  gem "high_voltage"
11
11
  gem "devise"
12
- gem "pundit"
12
+ # gem "pundit"
13
13
  gem "paperclip"
14
14
  gem "aws-sdk", "< 2.0"
15
15
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wagon_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - ssaunier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-28 00:00:00.000000000 Z
11
+ date: 2015-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 4.2.0
33
+ version: 4.2.3
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 4.2.0
40
+ version: 4.2.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: colorize
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -118,7 +118,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
118
118
  requirements:
119
119
  - - ">="
120
120
  - !ruby/object:Gem::Version
121
- version: 2.2.0
121
+ version: 2.2.2
122
122
  required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  requirements:
124
124
  - - ">="
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  version: '0'
127
127
  requirements: []
128
128
  rubyforge_project:
129
- rubygems_version: 2.4.5
129
+ rubygems_version: 2.4.8
130
130
  signing_key:
131
131
  specification_version: 4
132
132
  summary: Generate a Rails app using Le Wagon's best practices (FullStack Bootcamp)