flatiron-rails 1.0.4 → 1.0.5
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 +4 -4
- data/lib/flatiron_rails.rb +1 -1
- data/templates/flatiron.rb +25 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c74a9b28053fa647011967057fb86ce38647e33b
|
4
|
+
data.tar.gz: 8b216c9f5b715c94e0fbbad35cfe443ee59583de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1db28f098b981b7aa52cec86f71df4e9bd54a6140829fd08939f1256ec9e30be26d045233dd97892e0e3094b07a44add573727af91fc997fd7633eb92477707
|
7
|
+
data.tar.gz: 8ee7d4d33d7f22ebd36ba939c290670b15388fcbdd4b4c97b6e1c8b4b7ec2c4fb243e59979c45406c52a35c6a042a7bf2d2539bc2264bb2437b3cbd888c0374f
|
data/lib/flatiron_rails.rb
CHANGED
@@ -4,7 +4,7 @@ class FlatironRails
|
|
4
4
|
def self.run
|
5
5
|
if ['-v', '--version'].include?(ARGV[0])
|
6
6
|
puts <<-VERSION.gsub(/^ {6}/, '')
|
7
|
-
Flatiron Rails 1.0.
|
7
|
+
Flatiron Rails 1.0.5
|
8
8
|
VERSION
|
9
9
|
elsif ARGV[0].nil? || ['-h','--help'].include?(ARGV[0]) || ARGV[0] != "new" || ARGV[2]
|
10
10
|
puts <<-HELP.gsub(/^ {6}/, '')
|
data/templates/flatiron.rb
CHANGED
@@ -268,14 +268,18 @@ File.open("spec/spec_helper.rb", "r+") do |f|
|
|
268
268
|
config.include FactoryGirl::Syntax::Methods
|
269
269
|
|
270
270
|
config.before(:suite) do
|
271
|
-
DatabaseCleaner.strategy = :transaction
|
272
271
|
DatabaseCleaner.clean_with(:truncation)
|
273
272
|
end
|
274
273
|
|
275
274
|
config.before(:each) do
|
275
|
+
DatabaseCleaner.strategy = :transaction
|
276
276
|
DatabaseCleaner.start
|
277
277
|
end
|
278
278
|
|
279
|
+
config.before(:each, :js => true) do
|
280
|
+
DatabaseCleaner.strategy = :truncation
|
281
|
+
end
|
282
|
+
|
279
283
|
config.after(:each) do
|
280
284
|
DatabaseCleaner.clean
|
281
285
|
end
|
@@ -370,6 +374,26 @@ end
|
|
370
374
|
|
371
375
|
add_line_to_file("app/assets/stylesheets/application.css.scss", "\n@import \"bootstrap\";", /\*\//)
|
372
376
|
|
377
|
+
File.open("app/assets/stylesheets/application.css.scss", "a") do |f|
|
378
|
+
f.write <<-CSS.strip_heredoc.chomp
|
379
|
+
/* Some Style from the Bootstrap Default Theme */
|
380
|
+
body {
|
381
|
+
padding-top: 70px;
|
382
|
+
padding-bottom: 30px;
|
383
|
+
}
|
384
|
+
|
385
|
+
.theme-dropdown .dropdown-menu {
|
386
|
+
position: static;
|
387
|
+
display: block;
|
388
|
+
margin-bottom: 20px;
|
389
|
+
}
|
390
|
+
|
391
|
+
.theme-showcase > p > .btn {
|
392
|
+
margin: 5px 0;
|
393
|
+
}
|
394
|
+
CSS
|
395
|
+
end
|
396
|
+
|
373
397
|
File.open("app/assets/javascripts/application.js", "r+") do |f|
|
374
398
|
out = ""
|
375
399
|
jquery_count = 0
|
@@ -391,7 +415,6 @@ end
|
|
391
415
|
# Add STACK description file
|
392
416
|
file 'STACK.md', <<-STACK.strip_heredoc.chomp
|
393
417
|
This generator has set up the following stack:
|
394
|
-
|
395
418
|
1. Testing
|
396
419
|
* RSpec
|
397
420
|
* Capybara
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flatiron-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arel English
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-03-
|
13
|
+
date: 2014-03-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|