da-suspenders 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +4 -0
- data/README.md +6 -4
- data/Rakefile +8 -4
- data/da-suspenders.gemspec +4 -0
- data/features/running_cucumber.feature +3 -0
- data/features/step_definitions/shell.rb +9 -5
- data/lib/da-suspenders/version.rb +1 -1
- data/template/trout/Gemfile +2 -2
- data/template/trout/config/initializers/errors.rb +2 -0
- data/template/trout/vendor/assets/javascripts/modernizr.js +8 -3
- metadata +49 -4
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
## 1.2.3 (2012-02-10)
|
2
|
+
* Updated Modernizr to v2.5.2.
|
3
|
+
* Added our fork of "trout" to the Gemfile.
|
4
|
+
* Use compass-rails gem (pre-release) instead of requiring it directly from Github.
|
5
|
+
|
1
6
|
## 1.2.2 (2012-02-07)
|
2
7
|
* Added "Aristo" theme for jQuery UI (via the jquery-rails-aristo gem).
|
3
8
|
* Added "da-js" JavaScript library.
|
data/Gemfile
ADDED
data/README.md
CHANGED
@@ -23,12 +23,14 @@ If you want to create an app using [Mongoid](http://mongoid.org/) pass the `--wi
|
|
23
23
|
|
24
24
|
### Trout
|
25
25
|
|
26
|
-
Suspenders uses [Trout](https://github.com/
|
26
|
+
DA-Suspenders uses [Trout](https://github.com/die-antwort/trout) to make it easier to maintain a base version of special files (like Gemfile) in Suspenders.
|
27
27
|
|
28
|
-
Whenever you want to get the latest and greatest DA-Suspenders
|
29
|
-
|
30
|
-
trout update Gemfile
|
28
|
+
Whenever you want to get the latest and greatest files from DA-Suspenders’, run:
|
31
29
|
|
30
|
+
trout update-all
|
31
|
+
|
32
|
+
You can use `trout list` to check which files are tracked by Trout, and `trout update FILENAME` if you want to update just a single file only.
|
33
|
+
|
32
34
|
|
33
35
|
## Gemfile
|
34
36
|
|
data/Rakefile
CHANGED
@@ -20,7 +20,7 @@ end
|
|
20
20
|
|
21
21
|
namespace :test_project do
|
22
22
|
desc 'Suspend a new project. Pass WITH_MONGOID=1 to use mongoid. Pass REPO=... to change the Suspenders repo (defaults to dir with Rakefile).'
|
23
|
-
task :generate do
|
23
|
+
task :generate => :clean_env do
|
24
24
|
FileUtils.rm_rf(TEST_PROJECT)
|
25
25
|
repo = (ENV['REPO'] || "file://#{Dir.pwd}").to_s
|
26
26
|
with_mongoid = ENV["WITH_MONGOID"] ? "--with-mongoid" : ""
|
@@ -28,10 +28,9 @@ namespace :test_project do
|
|
28
28
|
end
|
29
29
|
|
30
30
|
desc 'Remove a suspended project'
|
31
|
-
task :destroy do
|
31
|
+
task :destroy => :clean_env do
|
32
32
|
FileUtils.cd TEST_PROJECT
|
33
|
-
sh "rake db:drop
|
34
|
-
sh "rake db:drop RAILS_ENV=test"
|
33
|
+
sh "bundle exec rake db:drop"
|
35
34
|
FileUtils.cd '..'
|
36
35
|
FileUtils.rm_rf TEST_PROJECT
|
37
36
|
end
|
@@ -40,3 +39,8 @@ end
|
|
40
39
|
desc 'Run the test suite'
|
41
40
|
task :default => ['test:full']
|
42
41
|
|
42
|
+
task :clean_env do
|
43
|
+
# Make sure to have a non-bundled ENV for generating the test project, even when running via "bundle exec rake ..."
|
44
|
+
ENV["RUBYOPT"] = nil
|
45
|
+
ENV["BUNDLE_GEMFILE"] = nil
|
46
|
+
end
|
data/da-suspenders.gemspec
CHANGED
@@ -16,6 +16,10 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.add_dependency('bundler', '~> 1.0.10')
|
17
17
|
s.add_dependency('trout', '~> 0.3')
|
18
18
|
|
19
|
+
s.add_development_dependency('rake', '~> 0.9.2')
|
20
|
+
s.add_development_dependency('cucumber')
|
21
|
+
s.add_development_dependency('rspec-expectations')
|
22
|
+
|
19
23
|
s.files = `git ls-files`.split("\n")
|
20
24
|
s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
|
21
25
|
s.test_files = s.files.select{ |path| path =~ /^features/ }
|
@@ -1,6 +1,12 @@
|
|
1
|
+
Given 'I have a clean environment' do
|
2
|
+
# Make sure to have a non-bundled ENV, even when running via "bundle exec cucumber ..."
|
3
|
+
ENV["RUBYOPT"] = nil
|
4
|
+
ENV["BUNDLE_GEMFILE"] = nil
|
5
|
+
end
|
6
|
+
|
1
7
|
When 'I run the rake task "$task_name"' do |task_name|
|
2
8
|
Dir.chdir('test_project') do
|
3
|
-
system("rake #{task_name}")
|
9
|
+
system("bundle exec rake #{task_name}")
|
4
10
|
end
|
5
11
|
end
|
6
12
|
|
@@ -22,9 +28,7 @@ end
|
|
22
28
|
|
23
29
|
When 'I drop and create the required databases' do
|
24
30
|
Dir.chdir('test_project') do
|
25
|
-
system("rake db:drop
|
26
|
-
system("rake db:
|
27
|
-
system("rake db:create RAILS_ENV=test")
|
28
|
-
system("rake db:create")
|
31
|
+
system("bundle exec rake db:drop")
|
32
|
+
system("bundle exec rake db:create")
|
29
33
|
end
|
30
34
|
end
|
data/template/trout/Gemfile
CHANGED
@@ -11,10 +11,10 @@ group :assets do
|
|
11
11
|
gem 'sass-rails', '~> 3.2.3'
|
12
12
|
gem 'coffee-rails', '~> 3.2.1'
|
13
13
|
gem 'uglifier', '>= 1.0.3'
|
14
|
-
gem 'compass',
|
15
|
-
gem 'compass-rails', :git => 'git://github.com/Compass/compass-rails.git'
|
14
|
+
gem 'compass-rails', '~> 1.0.0.rc.2'
|
16
15
|
end
|
17
16
|
|
17
|
+
gem "trout", :git => "git://github.com/die-antwort/trout.git"
|
18
18
|
gem "app_config", :git => "git://github.com/die-antwort/app_config.git"
|
19
19
|
gem "formtastic", ">= 2.1.0.beta1"
|
20
20
|
gem "airbrake"
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Modernizr v2.5.
|
2
|
+
* Modernizr v2.5.2
|
3
3
|
* www.modernizr.com
|
4
4
|
*
|
5
5
|
* Copyright (c) Faruk Ates, Paul Irish, Alex Sexton
|
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
window.Modernizr = (function( window, document, undefined ) {
|
26
26
|
|
27
|
-
var version = '2.5.
|
27
|
+
var version = '2.5.2',
|
28
28
|
|
29
29
|
Modernizr = {},
|
30
30
|
|
@@ -76,6 +76,8 @@ window.Modernizr = (function( window, document, undefined ) {
|
|
76
76
|
|
77
77
|
classes = [],
|
78
78
|
|
79
|
+
slice = classes.slice,
|
80
|
+
|
79
81
|
featureName, // used in testing loop
|
80
82
|
|
81
83
|
|
@@ -110,7 +112,9 @@ window.Modernizr = (function( window, document, undefined ) {
|
|
110
112
|
// Opera will act all quirky when injecting elements in documentElement when page is served as xml, needs fakebody too. #270
|
111
113
|
fakeBody.innerHTML += style;
|
112
114
|
fakeBody.appendChild(div);
|
113
|
-
|
115
|
+
if(!body){
|
116
|
+
docElement.appendChild(fakeBody);
|
117
|
+
}
|
114
118
|
|
115
119
|
ret = callback(div, rule);
|
116
120
|
// If this is done after page load we don't want to remove the body so check if body exists
|
@@ -205,6 +209,7 @@ window.Modernizr = (function( window, document, undefined ) {
|
|
205
209
|
// http://es5.github.com/#x15.3.4.5
|
206
210
|
|
207
211
|
if (!Function.prototype.bind) {
|
212
|
+
|
208
213
|
Function.prototype.bind = function bind(that) {
|
209
214
|
|
210
215
|
var target = this;
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: da-suspenders
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 3
|
10
|
+
version: 1.2.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- thoughtbot
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2012-02-
|
19
|
+
date: 2012-02-10 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: rails
|
@@ -65,6 +65,50 @@ dependencies:
|
|
65
65
|
version: "0.3"
|
66
66
|
type: :runtime
|
67
67
|
version_requirements: *id003
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
name: rake
|
70
|
+
prerelease: false
|
71
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ~>
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
hash: 63
|
77
|
+
segments:
|
78
|
+
- 0
|
79
|
+
- 9
|
80
|
+
- 2
|
81
|
+
version: 0.9.2
|
82
|
+
type: :development
|
83
|
+
version_requirements: *id004
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: cucumber
|
86
|
+
prerelease: false
|
87
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
88
|
+
none: false
|
89
|
+
requirements:
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
hash: 3
|
93
|
+
segments:
|
94
|
+
- 0
|
95
|
+
version: "0"
|
96
|
+
type: :development
|
97
|
+
version_requirements: *id005
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: rspec-expectations
|
100
|
+
prerelease: false
|
101
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
102
|
+
none: false
|
103
|
+
requirements:
|
104
|
+
- - ">="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
hash: 3
|
107
|
+
segments:
|
108
|
+
- 0
|
109
|
+
version: "0"
|
110
|
+
type: :development
|
111
|
+
version_requirements: *id006
|
68
112
|
description: DIE ANTWORT's fork of thoughtbot's original Suspenders. Suspenders is an upgradeable base Rails project.
|
69
113
|
email: stefan@die-antwort.eu
|
70
114
|
executables:
|
@@ -77,6 +121,7 @@ extra_rdoc_files:
|
|
77
121
|
files:
|
78
122
|
- .gitignore
|
79
123
|
- CHANGELOG.md
|
124
|
+
- Gemfile
|
80
125
|
- LICENSE
|
81
126
|
- README.md
|
82
127
|
- Rakefile
|