modularity-rails 0.3.0 → 0.4.0

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/README.md CHANGED
@@ -34,6 +34,8 @@ The easiest way is to add it to `application.js`:
34
34
  See [http://github.com/kevgo/modularity-coffeescript].
35
35
 
36
36
 
37
+ # Development
38
+
37
39
  ## Contributing
38
40
 
39
41
  1. Fork it
@@ -41,3 +43,10 @@ See [http://github.com/kevgo/modularity-coffeescript].
41
43
  3. Commit your changes (`git commit -am 'Added some feature'`)
42
44
  4. Push to the branch (`git push origin my-new-feature`)
43
45
  5. Create new Pull Request
46
+
47
+
48
+ ## Running the unit tests
49
+
50
+ ```bash
51
+ $ evergreen run
52
+ ```
@@ -1,3 +1,3 @@
1
1
  module ModularityRails
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -1,5 +1,5 @@
1
- require('/public/javascripts/jquery.min.js')
2
- require('/public/javascripts/coffee-script.js')
1
+ require('/spec/javascripts/external/jquery.min.js')
2
+ require('/spec/javascripts/external/coffee-script.js')
3
3
 
4
4
  # Helper method to circumvent that Evergreen doesn't load CoffeeScript files.
5
5
  loadCS = (url, callback) ->
@@ -25,6 +25,9 @@ describe 'modularity', ->
25
25
  beforeEach ->
26
26
  spyOn window, 'alert'
27
27
 
28
+ it "is defined on the 'window' object", ->
29
+ expect(window.Module).not.toBeUndefined()
30
+
28
31
  it 'shows an error if no container is given', ->
29
32
  new Module()
30
33
  expect(alert).toHaveBeenCalled()
@@ -48,12 +51,8 @@ describe 'modularity', ->
48
51
 
49
52
  describe 'assert', ->
50
53
 
51
- # Variables that should be accessible in both the beforeEach block and the tests.
52
- module = null
53
-
54
54
  beforeEach ->
55
55
  spyOn window, 'alert'
56
- module = new Module('testing')
57
56
 
58
57
  it 'shows an alert with the given message if the given condition is false', ->
59
58
  Module.assert false, 'Message'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: modularity-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-22 00:00:00.000000000 Z
12
+ date: 2012-04-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70292877992260 !ruby/object:Gem::Requirement
16
+ requirement: &70342677656980 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70292877992260
24
+ version_requirements: *70342677656980
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: capybara-webkit
27
- requirement: &70292877991380 !ruby/object:Gem::Requirement
27
+ requirement: &70342677656560 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70292877991380
35
+ version_requirements: *70342677656560
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: evergreen
38
- requirement: &70292877990260 !ruby/object:Gem::Requirement
38
+ requirement: &70342677656100 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70292877990260
46
+ version_requirements: *70342677656100
47
47
  description: Description of ModularityRails.
48
48
  email:
49
49
  - kevin.goslar@gmail.com
@@ -62,8 +62,8 @@ files:
62
62
  - lib/modularity-rails/engine.rb
63
63
  - lib/modularity-rails/version.rb
64
64
  - modularity-rails.gemspec
65
- - public/javascripts/coffee-script.js
66
- - public/javascripts/jquery.min.js
65
+ - spec/javascripts/external/coffee-script.js
66
+ - spec/javascripts/external/jquery.min.js
67
67
  - spec/javascripts/modularity_spec.coffee
68
68
  - spec/javascripts/templates/test.html
69
69
  - vendor/assets/javascripts/modularity.js.coffee