lungojs-rails 0.0.6 → 0.0.7

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/Gemfile CHANGED
@@ -1,4 +1,13 @@
1
- source 'https://rubygems.org'
1
+ source :rubygems
2
2
 
3
- # Specify your gem's dependencies in lungojs-rails.gemspec
4
3
  gemspec
4
+
5
+ group :test do
6
+ gem 'rspec'
7
+ gem 'redcarpet'
8
+ gem 'yard'
9
+
10
+ gem 'rails'
11
+ end
12
+
13
+
data/Gemfile.lock ADDED
@@ -0,0 +1,107 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ lungojs-rails (0.0.7)
5
+ railties (>= 3.2.0, < 5.0)
6
+ thor (~> 0.14)
7
+
8
+ GEM
9
+ remote: http://rubygems.org/
10
+ specs:
11
+ actionmailer (3.2.7)
12
+ actionpack (= 3.2.7)
13
+ mail (~> 2.4.4)
14
+ actionpack (3.2.7)
15
+ activemodel (= 3.2.7)
16
+ activesupport (= 3.2.7)
17
+ builder (~> 3.0.0)
18
+ erubis (~> 2.7.0)
19
+ journey (~> 1.0.4)
20
+ rack (~> 1.4.0)
21
+ rack-cache (~> 1.2)
22
+ rack-test (~> 0.6.1)
23
+ sprockets (~> 2.1.3)
24
+ activemodel (3.2.7)
25
+ activesupport (= 3.2.7)
26
+ builder (~> 3.0.0)
27
+ activerecord (3.2.7)
28
+ activemodel (= 3.2.7)
29
+ activesupport (= 3.2.7)
30
+ arel (~> 3.0.2)
31
+ tzinfo (~> 0.3.29)
32
+ activeresource (3.2.7)
33
+ activemodel (= 3.2.7)
34
+ activesupport (= 3.2.7)
35
+ activesupport (3.2.7)
36
+ i18n (~> 0.6)
37
+ multi_json (~> 1.0)
38
+ arel (3.0.2)
39
+ builder (3.0.0)
40
+ diff-lcs (1.1.3)
41
+ erubis (2.7.0)
42
+ hike (1.2.1)
43
+ i18n (0.6.0)
44
+ journey (1.0.4)
45
+ json (1.7.4)
46
+ mail (2.4.4)
47
+ i18n (>= 0.4.0)
48
+ mime-types (~> 1.16)
49
+ treetop (~> 1.4.8)
50
+ mime-types (1.19)
51
+ multi_json (1.3.6)
52
+ polyglot (0.3.3)
53
+ rack (1.4.1)
54
+ rack-cache (1.2)
55
+ rack (>= 0.4)
56
+ rack-ssl (1.3.2)
57
+ rack
58
+ rack-test (0.6.1)
59
+ rack (>= 1.0)
60
+ rails (3.2.7)
61
+ actionmailer (= 3.2.7)
62
+ actionpack (= 3.2.7)
63
+ activerecord (= 3.2.7)
64
+ activeresource (= 3.2.7)
65
+ activesupport (= 3.2.7)
66
+ bundler (~> 1.0)
67
+ railties (= 3.2.7)
68
+ railties (3.2.7)
69
+ actionpack (= 3.2.7)
70
+ activesupport (= 3.2.7)
71
+ rack-ssl (~> 1.3.2)
72
+ rake (>= 0.8.7)
73
+ rdoc (~> 3.4)
74
+ thor (>= 0.14.6, < 2.0)
75
+ rake (0.9.2.2)
76
+ rdoc (3.12)
77
+ json (~> 1.4)
78
+ redcarpet (2.1.1)
79
+ rspec (2.11.0)
80
+ rspec-core (~> 2.11.0)
81
+ rspec-expectations (~> 2.11.0)
82
+ rspec-mocks (~> 2.11.0)
83
+ rspec-core (2.11.1)
84
+ rspec-expectations (2.11.2)
85
+ diff-lcs (~> 1.1.3)
86
+ rspec-mocks (2.11.1)
87
+ sprockets (2.1.3)
88
+ hike (~> 1.2)
89
+ rack (~> 1.0)
90
+ tilt (~> 1.1, != 1.3.0)
91
+ thor (0.15.4)
92
+ tilt (1.3.3)
93
+ treetop (1.4.10)
94
+ polyglot
95
+ polyglot (>= 0.3.1)
96
+ tzinfo (0.3.33)
97
+ yard (0.8.2.1)
98
+
99
+ PLATFORMS
100
+ ruby
101
+
102
+ DEPENDENCIES
103
+ lungojs-rails!
104
+ rails
105
+ redcarpet
106
+ rspec
107
+ yard
data/Rakefile CHANGED
@@ -1,2 +1,13 @@
1
1
  #!/usr/bin/env rake
2
- require "bundler/gem_tasks"
2
+ require 'bundler'
3
+ Bundler::GemHelper.install_tasks
4
+
5
+ $:.unshift 'lib'
6
+
7
+ require "rspec/core/rake_task"
8
+
9
+ desc "Run the rspec tests"
10
+ RSpec::Core::RakeTask.new(:spec) do |spec|
11
+ spec.pattern = 'spec/**/*_spec.rb'
12
+ spec.rspec_opts = ['--options', 'spec/spec.opts']
13
+ end
@@ -1,4 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
+ # @author Lleïr Borràs Metje <lleir@llegeix.me>
3
+
4
+
2
5
  require 'rails'
3
6
 
4
7
  # Supply generator for Rails 3.0.x or if asset pipeline is not enabled
@@ -7,9 +10,9 @@ if ::Rails.version < "3.1" || !::Rails.application.config.assets.enabled
7
10
  module Generators
8
11
  class InstallGenerator < ::Rails::Generators::Base
9
12
  desc "This generator installs Lungo.js #{Lungojs::Rails::LUNGO_JS_VERSION}"
13
+ source_root File.expand_path('../../../../../vendor/assets', __FILE__)
10
14
 
11
15
  def copy_lungojs
12
- source_root File.expand_path('../../../../../vendor/assets', __FILE__)
13
16
 
14
17
  say_status("copying", "Lungo.js (#{Lungojs::Rails::LUNGO_JS_VERSION})", :green)
15
18
  copy_file "javascripts/lungo-1.2.js", "public/javascripts/lungo-1.2.js"
@@ -19,10 +22,8 @@ if ::Rails.version < "3.1" || !::Rails.application.config.assets.enabled
19
22
  end
20
23
 
21
24
  def copy_app
22
- source_root File.expand_path('./', __FILE__)
23
-
24
25
  say_status("copying", "app (#{Lungojs::Rails::LUNGO_JS_VERSION})", :green)
25
- directory 'app', 'public/javascripts/app'
26
+ directory './app', 'public/javascripts/app'
26
27
  end
27
28
  end
28
29
  end
@@ -32,6 +33,7 @@ else
32
33
  module Generators
33
34
  class InstallGenerator < ::Rails::Generators::Base
34
35
  desc "Just show instructions so people will know what to do when mistakenly using generator for Rails 3.1 apps"
36
+ source_root File.expand_path('./', __FILE__)
35
37
 
36
38
  def do_nothing
37
39
  say_status("deprecated", "You are using Rails 3.1 with the asset pipeline enabled, so this generator is not needed.")
@@ -43,8 +45,6 @@ else
43
45
  end
44
46
 
45
47
  def copy_app
46
- source_root File.expand_path('./', __FILE__)
47
-
48
48
  say_status("copying", "app (#{Lungojs::Rails::LUNGO_JS_VERSION})", :green)
49
49
  directory 'app', 'public/javascripts/app'
50
50
  end
data/lib/lungojs-rails.rb CHANGED
@@ -1,2 +1,4 @@
1
1
  # -*- encoding: utf-8 -*-
2
+ # @author Lleïr Borràs Metje <lleir@llegeix.me>
3
+
2
4
  require 'lungojs/rails'
@@ -1,7 +1,9 @@
1
1
  # -*- encoding: utf-8 -*-
2
+ # @author Lleïr Borràs Metje <lleir@llegeix.me>
3
+
2
4
  module Lungojs
3
5
  module Rails
4
- class Engine < ::Rails::Engine
5
- end
6
+ # class Engine < ::Rails::Engine
7
+ # end
6
8
  end
7
9
  end
@@ -1,7 +1,10 @@
1
1
  # -*- encoding: utf-8 -*-
2
+ # @author Lleïr Borràs Metje <lleir@llegeix.me>
3
+
4
+
2
5
  module Lungojs
3
6
  module Rails
4
- VERSION = "0.0.6"
7
+ VERSION = "0.0.7"
5
8
  LUNGO_JS_VERSION = "1.2"
6
9
  end
7
10
  end
@@ -1,5 +1,8 @@
1
1
  # -*- encoding: utf-8 -*-
2
- require File.expand_path('../lib/lungojs/rails/version', __FILE__)
2
+ # @author Lleïr Borràs Metje <lleir@llegeix.me>
3
+
4
+ $:.push File.expand_path("../lib", __FILE__)
5
+ require File.expand_path('../lib/lungojs-rails', __FILE__)
3
6
 
4
7
  Gem::Specification.new do |gem|
5
8
  gem.name = "lungojs-rails"
@@ -0,0 +1,7 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # @author Lleïr Borràs Metje <lleir@llegeix.me>
3
+
4
+ require "spec_helper"
5
+
6
+ describe Lungojs::Rails do
7
+ end
data/spec/spec.opts ADDED
@@ -0,0 +1,2 @@
1
+ --colour
2
+ --format progress
@@ -0,0 +1,14 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # @author Lleïr Borràs Metje <lleir@llegeix.me>
3
+
4
+ require 'rubygems'
5
+ require 'bundler/setup'
6
+
7
+ # Set up generator tests
8
+ require 'rails/all'
9
+ require 'rails/generators'
10
+ require 'rails/generators/test_case'
11
+
12
+ RSpec.configure do |config|
13
+
14
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lungojs-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -58,6 +58,7 @@ extra_rdoc_files: []
58
58
  files:
59
59
  - .gitignore
60
60
  - Gemfile
61
+ - Gemfile.lock
61
62
  - LICENSE
62
63
  - README.md
63
64
  - Rakefile
@@ -72,6 +73,9 @@ files:
72
73
  - lib/lungojs/rails/engine.rb
73
74
  - lib/lungojs/rails/version.rb
74
75
  - lungojs-rails.gemspec
76
+ - spec/lib/lungojs-rails_spec.rb
77
+ - spec/spec.opts
78
+ - spec/spec_helper.rb
75
79
  - vendor/assets/javascripts/lungo-1.2.js
76
80
  - vendor/assets/stylesheets/lungo-1.2.css
77
81
  - vendor/assets/stylesheets/lungo.theme.default.css
@@ -88,6 +92,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
88
92
  - - ! '>='
89
93
  - !ruby/object:Gem::Version
90
94
  version: '0'
95
+ segments:
96
+ - 0
97
+ hash: 2599235414899760989
91
98
  required_rubygems_version: !ruby/object:Gem::Requirement
92
99
  none: false
93
100
  requirements:
@@ -101,3 +108,4 @@ signing_key:
101
108
  specification_version: 3
102
109
  summary: Use Lungo.js with Rails 3"
103
110
  test_files: []
111
+ has_rdoc: