gauges-rails 0.2.0 → 0.2.1

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.
@@ -0,0 +1,21 @@
1
+ # Changelog
2
+
3
+ ## Gauges::Rails 0.2.1
4
+
5
+ * Ensure `gauges.js` is added to the list of assets to be precompiled.
6
+ * Document the use of the tracking code in the manifest file.
7
+
8
+
9
+ ## Gauges::Rails 0.2.0
10
+
11
+ * Rewrite to use the Sprockets asset pipeline by [Tyler Hunt][tyler].
12
+ * Remove support for multiple `site_id`s per application.
13
+
14
+
15
+ ## Gauges::Rails 0.0.1
16
+
17
+ * Initial release by [Jason Coene][tyler].
18
+
19
+
20
+ [jason]: http://github.com/jcoene
21
+ [tyler]: http://github.com/tylerhunt
data/README.md CHANGED
@@ -39,6 +39,12 @@ Or, if your template is using Haml:
39
39
 
40
40
  = javascript_include_tag('gauges')
41
41
 
42
+ While Gauges suggests placing this code right before the closing &lt/body>
43
+ tag, if you'd rather add it inline with the rest of your JavaScript code, you
44
+ can add it to the bottom of your `app/assets/javascripts/application.js` file:
45
+
46
+ //= require gauges
47
+
42
48
 
43
49
  ## Contributing
44
50
 
@@ -49,6 +55,13 @@ Or, if your template is using Haml:
49
55
  5. Create a new Pull Request.
50
56
 
51
57
 
58
+ ## Credits
59
+
60
+ Thanks to [Jason Coene][jason] for creating the original version of this Gem.
61
+
62
+ [jason]: https://github.com/jcoene
63
+
64
+
52
65
  ## Copyright
53
66
 
54
67
  Copyright © 2012 Tyler Hunt. See LICENSE for details.
@@ -5,6 +5,10 @@ module Gauges
5
5
  class Engine < ::Rails::Engine
6
6
  config.gauges = ActiveSupport::OrderedOptions.new
7
7
  config.gauges.site_id = nil
8
+
9
+ initializer 'gauges-rails.update_precompiled_assets' do |app|
10
+ app.config.assets.precompile << 'gauges.js'
11
+ end
8
12
  end
9
13
  end
10
14
  end
@@ -1,5 +1,5 @@
1
1
  module Gauges
2
2
  module Rails
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.1'
4
4
  end
5
5
  end
@@ -31,5 +31,9 @@ describe Gauges::Rails::Engine do
31
31
  get '/assets/gauges.js'
32
32
  last_response.body.should include(site_id)
33
33
  end
34
+
35
+ it 'updates the list of precompiled assets' do
36
+ app.config.assets.precompile.should include('gauges.js')
37
+ end
34
38
  end
35
39
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gauges-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-03-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70200658128380 !ruby/object:Gem::Requirement
16
+ requirement: &70130931786800 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70200658128380
24
+ version_requirements: *70130931786800
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70200658127860 !ruby/object:Gem::Requirement
27
+ requirement: &70130931786300 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '2.0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70200658127860
35
+ version_requirements: *70130931786300
36
36
  description: An engine to add Gauges tracking code to Rails apps.
37
37
  email:
38
38
  - tyler@tylerhunt.com
@@ -42,6 +42,7 @@ extra_rdoc_files: []
42
42
  files:
43
43
  - .gitignore
44
44
  - .rspec
45
+ - CHANGELOG.md
45
46
  - Gemfile
46
47
  - LICENSE
47
48
  - README.md