ng_classify 0.0.2 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +74 -59
- data/MIT-LICENSE +1 -1
- data/{README.rdoc → README.md} +3 -3
- data/lib/ng_classify.rb +2 -1
- data/lib/ng_classify/version.rb +1 -1
- data/ng_classify.gemspec +6 -6
- metadata +18 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 824c4047eb23a2e94584bd707f9feb23b123e80a
|
4
|
+
data.tar.gz: 340e6a5af2d6afd3c50335741c608a89b9a84bd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2480fde4d106b1212737d25dbffdea5f549b3e832b30130ff20ba03d20a9d18df9634e1c59893affa3eb6ef24c8241ce80e43ff97ee46907371e31501bbe8bb
|
7
|
+
data.tar.gz: 2f254abb473e079e4f729b9e9ed0e7b10acb64878cb51917ebfa76b3cb0cc78c01c711e4606fa727c294351e9436998f673f0215858537e85bd4d56c677636a0
|
data/Gemfile.lock
CHANGED
@@ -1,87 +1,102 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ng_classify (0.0.
|
5
|
-
|
4
|
+
ng_classify (0.0.3)
|
5
|
+
actionpack (>= 3.0, < 4.2)
|
6
|
+
activesupport (>= 3.0, < 4.2)
|
7
|
+
commonjs (~> 0.2, >= 0.2.7)
|
8
|
+
rails (>= 3.2)
|
9
|
+
railties (>= 3.0, < 4.2)
|
10
|
+
therubyracer (~> 0.12, >= 0.12.1)
|
6
11
|
|
7
12
|
GEM
|
8
13
|
remote: https://rubygems.org/
|
9
14
|
specs:
|
10
|
-
actionmailer (
|
11
|
-
actionpack (=
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
rack (~> 1.5.2)
|
18
|
-
rack-test (~> 0.6.2)
|
19
|
-
actionview (4.1.6)
|
20
|
-
activesupport (= 4.1.6)
|
21
|
-
builder (~> 3.1)
|
15
|
+
actionmailer (3.2.21)
|
16
|
+
actionpack (= 3.2.21)
|
17
|
+
mail (~> 2.5.4)
|
18
|
+
actionpack (3.2.21)
|
19
|
+
activemodel (= 3.2.21)
|
20
|
+
activesupport (= 3.2.21)
|
21
|
+
builder (~> 3.0.0)
|
22
22
|
erubis (~> 2.7.0)
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
tzinfo (~>
|
36
|
-
|
37
|
-
|
23
|
+
journey (~> 1.0.4)
|
24
|
+
rack (~> 1.4.5)
|
25
|
+
rack-cache (~> 1.2)
|
26
|
+
rack-test (~> 0.6.1)
|
27
|
+
sprockets (~> 2.2.1)
|
28
|
+
activemodel (3.2.21)
|
29
|
+
activesupport (= 3.2.21)
|
30
|
+
builder (~> 3.0.0)
|
31
|
+
activerecord (3.2.21)
|
32
|
+
activemodel (= 3.2.21)
|
33
|
+
activesupport (= 3.2.21)
|
34
|
+
arel (~> 3.0.2)
|
35
|
+
tzinfo (~> 0.3.29)
|
36
|
+
activeresource (3.2.21)
|
37
|
+
activemodel (= 3.2.21)
|
38
|
+
activesupport (= 3.2.21)
|
39
|
+
activesupport (3.2.21)
|
40
|
+
i18n (~> 0.6, >= 0.6.4)
|
41
|
+
multi_json (~> 1.0)
|
42
|
+
arel (3.0.3)
|
43
|
+
builder (3.0.4)
|
44
|
+
commonjs (0.2.7)
|
38
45
|
erubis (2.7.0)
|
39
46
|
hike (1.2.3)
|
40
47
|
i18n (0.6.11)
|
48
|
+
journey (1.0.4)
|
41
49
|
json (1.8.1)
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
50
|
+
libv8 (3.16.14.7)
|
51
|
+
mail (2.5.4)
|
52
|
+
mime-types (~> 1.16)
|
53
|
+
treetop (~> 1.4.8)
|
54
|
+
mime-types (1.25.1)
|
46
55
|
multi_json (1.10.1)
|
47
|
-
|
56
|
+
polyglot (0.3.5)
|
57
|
+
rack (1.4.5)
|
58
|
+
rack-cache (1.2)
|
59
|
+
rack (>= 0.4)
|
60
|
+
rack-ssl (1.3.4)
|
61
|
+
rack
|
48
62
|
rack-test (0.6.2)
|
49
63
|
rack (>= 1.0)
|
50
|
-
rails (
|
51
|
-
actionmailer (=
|
52
|
-
actionpack (=
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
activesupport (= 4.1.6)
|
64
|
+
rails (3.2.21)
|
65
|
+
actionmailer (= 3.2.21)
|
66
|
+
actionpack (= 3.2.21)
|
67
|
+
activerecord (= 3.2.21)
|
68
|
+
activeresource (= 3.2.21)
|
69
|
+
activesupport (= 3.2.21)
|
70
|
+
bundler (~> 1.0)
|
71
|
+
railties (= 3.2.21)
|
72
|
+
railties (3.2.21)
|
73
|
+
actionpack (= 3.2.21)
|
74
|
+
activesupport (= 3.2.21)
|
75
|
+
rack-ssl (~> 1.3.2)
|
63
76
|
rake (>= 0.8.7)
|
64
|
-
|
65
|
-
|
66
|
-
|
77
|
+
rdoc (~> 3.4)
|
78
|
+
thor (>= 0.14.6, < 2.0)
|
79
|
+
rake (10.4.1)
|
80
|
+
rdoc (3.12.2)
|
81
|
+
json (~> 1.4)
|
82
|
+
ref (1.0.5)
|
83
|
+
sprockets (2.2.3)
|
67
84
|
hike (~> 1.2)
|
68
85
|
multi_json (~> 1.0)
|
69
86
|
rack (~> 1.0)
|
70
87
|
tilt (~> 1.1, != 1.3.0)
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
sprockets (~> 2.8)
|
75
|
-
sqlite3 (1.3.9)
|
88
|
+
therubyracer (0.12.1)
|
89
|
+
libv8 (~> 3.16.14.0)
|
90
|
+
ref
|
76
91
|
thor (0.19.1)
|
77
|
-
thread_safe (0.3.4)
|
78
92
|
tilt (1.4.1)
|
79
|
-
|
80
|
-
|
93
|
+
treetop (1.4.15)
|
94
|
+
polyglot
|
95
|
+
polyglot (>= 0.3.1)
|
96
|
+
tzinfo (0.3.42)
|
81
97
|
|
82
98
|
PLATFORMS
|
83
99
|
ruby
|
84
100
|
|
85
101
|
DEPENDENCIES
|
86
102
|
ng_classify!
|
87
|
-
sqlite3
|
data/MIT-LICENSE
CHANGED
data/{README.rdoc → README.md}
RENAMED
@@ -1,8 +1,8 @@
|
|
1
|
-
|
1
|
+
# NgClassify
|
2
2
|
|
3
3
|
This project rocks and uses MIT-LICENSE.
|
4
4
|
|
5
|
-
|
5
|
+
## Usage
|
6
6
|
|
7
7
|
Add `gem ng_classify` to your Gemfile
|
8
8
|
Run `bundle install`
|
@@ -10,7 +10,7 @@ Create a file with extension `.coffee.ng-classify`
|
|
10
10
|
Done!
|
11
11
|
|
12
12
|
|
13
|
-
|
13
|
+
## Configuration
|
14
14
|
|
15
15
|
You can also configure the naming convention of the components as well.
|
16
16
|
|
data/lib/ng_classify.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'ng_classify/version'
|
2
|
+
require 'commonjs'
|
2
3
|
require 'rails'
|
3
4
|
|
4
5
|
module NgClassify
|
@@ -50,7 +51,7 @@ module NgClassify
|
|
50
51
|
value: NgClassify.value
|
51
52
|
}
|
52
53
|
env = CommonJS::Environment.new(V8::Context.new, :path => File.expand_path(File.join('..'), __FILE__))
|
53
|
-
|
54
|
+
env.require('ng-classify-commonjs.js').call(data, options)
|
54
55
|
end
|
55
56
|
end
|
56
57
|
|
data/lib/ng_classify/version.rb
CHANGED
data/ng_classify.gemspec
CHANGED
@@ -19,10 +19,10 @@ Write less JavaScript. Write less CoffeeScript. Write less Angular."
|
|
19
19
|
s.test_files = Dir["test/**/*"]
|
20
20
|
s.require_paths = ['lib']
|
21
21
|
|
22
|
-
s.add_runtime_dependency 'therubyracer',
|
23
|
-
s.add_runtime_dependency 'commonjs',
|
24
|
-
s.add_runtime_dependency 'rails',
|
25
|
-
s.add_runtime_dependency 'activesupport',
|
26
|
-
s.add_runtime_dependency 'actionpack',
|
27
|
-
s.add_runtime_dependency 'railties',
|
22
|
+
s.add_runtime_dependency 'therubyracer', '~> 0.12', '>= 0.12.1'
|
23
|
+
s.add_runtime_dependency 'commonjs', '~> 0.2', '>= 0.2.7'
|
24
|
+
s.add_runtime_dependency 'rails', '>= 3.2', '< 5'
|
25
|
+
s.add_runtime_dependency 'activesupport', '>= 3.0', '< 5'
|
26
|
+
s.add_runtime_dependency 'actionpack', '>= 3.0', '< 5'
|
27
|
+
s.add_runtime_dependency 'railties', '>= 3.0', '< 5'
|
28
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ng_classify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Penn Su
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: therubyracer
|
@@ -54,22 +54,22 @@ dependencies:
|
|
54
54
|
name: rails
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
|
-
- - "~>"
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
version: '4.1'
|
60
57
|
- - ">="
|
61
58
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
59
|
+
version: '3.2'
|
60
|
+
- - "<"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '5'
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- - "~>"
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '4.1'
|
70
67
|
- - ">="
|
71
68
|
- !ruby/object:Gem::Version
|
72
|
-
version:
|
69
|
+
version: '3.2'
|
70
|
+
- - "<"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '5'
|
73
73
|
- !ruby/object:Gem::Dependency
|
74
74
|
name: activesupport
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|
@@ -79,7 +79,7 @@ dependencies:
|
|
79
79
|
version: '3.0'
|
80
80
|
- - "<"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '5'
|
83
83
|
type: :runtime
|
84
84
|
prerelease: false
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -89,7 +89,7 @@ dependencies:
|
|
89
89
|
version: '3.0'
|
90
90
|
- - "<"
|
91
91
|
- !ruby/object:Gem::Version
|
92
|
-
version: '
|
92
|
+
version: '5'
|
93
93
|
- !ruby/object:Gem::Dependency
|
94
94
|
name: actionpack
|
95
95
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,7 +99,7 @@ dependencies:
|
|
99
99
|
version: '3.0'
|
100
100
|
- - "<"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
102
|
+
version: '5'
|
103
103
|
type: :runtime
|
104
104
|
prerelease: false
|
105
105
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -109,7 +109,7 @@ dependencies:
|
|
109
109
|
version: '3.0'
|
110
110
|
- - "<"
|
111
111
|
- !ruby/object:Gem::Version
|
112
|
-
version: '
|
112
|
+
version: '5'
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: railties
|
115
115
|
requirement: !ruby/object:Gem::Requirement
|
@@ -119,7 +119,7 @@ dependencies:
|
|
119
119
|
version: '3.0'
|
120
120
|
- - "<"
|
121
121
|
- !ruby/object:Gem::Version
|
122
|
-
version: '
|
122
|
+
version: '5'
|
123
123
|
type: :runtime
|
124
124
|
prerelease: false
|
125
125
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -129,7 +129,7 @@ dependencies:
|
|
129
129
|
version: '3.0'
|
130
130
|
- - "<"
|
131
131
|
- !ruby/object:Gem::Version
|
132
|
-
version: '
|
132
|
+
version: '5'
|
133
133
|
description: |-
|
134
134
|
Convert CoffeeScript classes to AngularJS modules
|
135
135
|
Write less JavaScript. Write less CoffeeScript. Write less Angular.
|
@@ -143,7 +143,7 @@ files:
|
|
143
143
|
- Gemfile
|
144
144
|
- Gemfile.lock
|
145
145
|
- MIT-LICENSE
|
146
|
-
- README.
|
146
|
+
- README.md
|
147
147
|
- Rakefile
|
148
148
|
- lib/ng-classify-commonjs.js
|
149
149
|
- lib/ng_classify.rb
|
@@ -250,3 +250,4 @@ test_files:
|
|
250
250
|
- test/dummy/README.rdoc
|
251
251
|
- test/ng_classify_test.rb
|
252
252
|
- test/test_helper.rb
|
253
|
+
has_rdoc:
|