mozart-rails 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDViZDAzMjBkYjAyZTBhYTY0NmRjZjdjMjU4N2JjYzRmNzY4MDA3NQ==
4
+ Mzg1ZjI2NGZkZmQ5N2FhMzQ3OWIyN2IyMDQ1YjdhZWI3NjRkNTRiOQ==
5
5
  data.tar.gz: !binary |-
6
- ZTE3ZDNmMWE4N2UzNjJiYzFiODU5Zjg2ZWU4MGYyNzYxODEzMTFlZA==
6
+ Zjg2OTkxYjAzNzYzZTE1NDA0MTNiZjg2N2U4ODg5Y2JjNDRmN2I3NA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MWI2NGY0YTEwYWRjNGEzZDVlYzU1ZWQ1NWMyOTg4N2E0NDEwZGE0Mjg3NTA4
10
- MDMzYjFmOWVhOGMzM2ZhZDcyYWM4M2I1NWI5YmFhMDNjYTk5NzJiNmJlZjY3
11
- Y2RjNTBiNDM4ZjZlY2I5YThiZGNlOGJjNjAwNDhkMGRiN2MyNjE=
9
+ NDZhMzRhYWRjNDUxZTY0OGFjMmNmZTRiYTdkN2YzZDdkYzVjNDUyZmRhM2Zi
10
+ YTgyZWM1YWM4YWZiZTI4ODgxZDIzODM0Mjc0MDdkYjU2MWU3YWRjMGRlZGMy
11
+ ZjdkNDFhMDI4MGM2NDk4YzdmYjE1MjVjOGE2YmYxMGM3MjZlNWQ=
12
12
  data.tar.gz: !binary |-
13
- MTcxYWE5ZTgyMzFjOGYyMWQwMzM3OTViYjRmNzNjZmYyYTY5YWUxNGZlOWE5
14
- NTEzOWM2YTc3Y2QyNTdmY2M2ZDlmMDFhOWY3ZWMzNGMyZDIxNTVkNGExY2Ex
15
- NTZhNjY3MDVlM2FiZTcyZTM0OTM2NjExMjY0M2Q0NTI0NGE4YTI=
13
+ MTdmYzBiMDljMDMzYjdmMmFiNzhjMjhkMDc1MTA2Y2ZmY2JkY2E5NzY5MTcw
14
+ MDQ4MDhhNmQ5MzBiNjgyMGUzNzI0NGQ3YmUzMWQwZjExZmE3N2JjZmE4ZGY5
15
+ YTIxNjcxNTJiODRiZmFiZDI4OTFiYmY5YmRkZTJhZjZhMzI2Njk=
data/Gemfile CHANGED
@@ -1,4 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in mozart-rails.gemspec
3
+ if RUBY_VERSION < "1.9"
4
+ gem 'railties', '< 4.0'
5
+ end
6
+
4
7
  gemspec
data/README.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Mozart::Rails
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/mozart-rails.png)](https://rubygems.org/gems/mozart-rails)
4
+ [![Build Status](https://travis-ci.org/bigcommerce/mozart-rails.png?branch=master)](https://travis-ci.org/bigcommerce/mozart-rails)
5
+ [![Dependency Status](https://gemnasium.com/bigcommerce/mozart-rails.png?travis)](https://gemnasium.com/bigcommerce/mozart-rails)
6
+ [![Code Climate](https://codeclimate.com/github/bigcommerce/mozart-rails.png)](https://codeclimate.com/github/bigcommerce/mozart-rails)
7
+ [![Coverage Status](https://coveralls.io/repos/bigcommerce/mozart-rails/badge.png?branch=master)](https://coveralls.io/r/bigcommerce/mozart-rails?branch=master)
8
+
3
9
  Mozart! For Rails!
4
10
 
5
11
  This gem provides:
data/Rakefile CHANGED
@@ -1,8 +1,16 @@
1
1
  require "bundler/gem_tasks"
2
+ require "rake/testtask"
2
3
  require "mozart/rails/assets"
3
4
 
4
- task :build => [:clean, :download]
5
- task :release => [:clean, :download, :guard_version]
5
+ task :build => [:test, :clean, :download]
6
+ task :release => [:test, :clean, :download, :guard_version]
7
+ task :default => :test
8
+
9
+ Rake::TestTask.new do |t|
10
+ t.libs << 'test'
11
+ t.pattern = 'test/**/test*.rb'
12
+ t.verbose = true
13
+ end
6
14
 
7
15
  task :guard_version do
8
16
  def check_version(file, pattern, constant)
@@ -12,7 +12,7 @@ if ::Rails.version < "3.1" || !::Rails.application.config.assets.enabled
12
12
  def copy_mozart
13
13
  say_status("copying", "Mozart (#{Mozart::Rails::MOZART_VERSION})", :green)
14
14
  copy_file "mozart.js", "public/javascripts/mozart.js"
15
- copy_file "handlebars.js", "public/javascripts/handlebars.js"
15
+ copy_file "handlebars.runtime.js", "public/javascripts/handlebars.runtime.js"
16
16
  copy_file "jquery.js", "public/javascripts/jquery.js"
17
17
  copy_file "underscore.js", "public/javascripts/underscore.js"
18
18
  end
@@ -30,10 +30,7 @@ else
30
30
  say_status("deprecated", "You are using Rails 3.1 with the asset pipeline enabled, so this generator is not needed.")
31
31
  say_status("", "The necessary files are already in your asset pipeline.")
32
32
  say_status("", "Just add the following to your app/assets/javascripts/application.js")
33
- say_status("", "//= require mozart")
34
- say_status("", "//= require handlebars")
35
- say_status("", "//= require jquery")
36
- say_status("", "//= require underscore")
33
+ say_status("", "//= require mozart-all")
37
34
  say_status("", "If you do not want the asset pipeline enabled, you may turn it off in application.rb and re-run this generator.")
38
35
  # ok, nothing
39
36
  end
@@ -1,6 +1,6 @@
1
1
  module Mozart
2
2
  module Rails
3
- GEM_ROOT = File.expand_path(File.dirname(__FILE__) + '../')
3
+ GEM_ROOT = File.expand_path('../../', __FILE__)
4
4
  end
5
5
  end
6
6
 
@@ -1,3 +1,7 @@
1
+ require 'handlebars_assets'
2
+ require 'jquery-rails'
3
+ require 'underscore-rails'
4
+
1
5
  module Mozart
2
6
  module Rails
3
7
  class Engine < ::Rails::Engine
@@ -1,6 +1,6 @@
1
1
  module Mozart
2
2
  module Rails
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
 
5
5
  # Static JavaScript asset versions
6
6
  MOZART_VERSION = "0.1.8"
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Sasha Gerrand"]
10
10
  spec.email = ["sasha.gerrand@bigcommerce.com"]
11
11
  spec.description = %q{Use Mozart with Rails 3}
12
- spec.summary = %q{This gem provides Mozart for your Rails 3 application.}
12
+ spec.summary = %q{This gem provides the Mozart JavaScript framework for your Rails 3 application.}
13
13
  spec.homepage = "https://mozart.io"
14
14
  spec.license = "MIT"
15
15
 
@@ -22,8 +22,10 @@ Gem::Specification.new do |spec|
22
22
  spec.require_paths = ["lib"]
23
23
 
24
24
  spec.add_development_dependency "bundler", "~> 1.3"
25
+ spec.add_development_dependency "coveralls"
25
26
  spec.add_development_dependency "rake"
26
- spec.add_runtime_dependency "handlebars-rails"
27
+ spec.add_development_dependency "minitest"
28
+ spec.add_runtime_dependency "handlebars_assets"
27
29
  spec.add_runtime_dependency "jquery-rails"
28
30
  spec.add_runtime_dependency "underscore-rails"
29
31
  end
@@ -1,5 +1,5 @@
1
1
  // Declare all of Mozart's dependencies
2
- //= require handlebars
2
+ //= require handlebars.runtime
3
3
  //= require jquery
4
4
  //= require underscore
5
5
  //= require mozart
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mozart-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sasha Gerrand
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-11 00:00:00.000000000 Z
11
+ date: 2013-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: coveralls
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rake
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -39,7 +53,21 @@ dependencies:
39
53
  - !ruby/object:Gem::Version
40
54
  version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
- name: handlebars-rails
56
+ name: minitest
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: handlebars_assets
43
71
  requirement: !ruby/object:Gem::Requirement
44
72
  requirements:
45
73
  - - ! '>='
@@ -126,5 +154,5 @@ rubyforge_project:
126
154
  rubygems_version: 2.0.3
127
155
  signing_key:
128
156
  specification_version: 4
129
- summary: This gem provides Mozart for your Rails 3 application.
157
+ summary: This gem provides the Mozart JavaScript framework for your Rails 3 application.
130
158
  test_files: []