jekyll-opal 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 572cf221b7ea9c111c2db90cb06d7c6faf375f8f
4
- data.tar.gz: 889c457a57b43aff2c70501124275a31cb7d3306
3
+ metadata.gz: 812aa0ed74fb29748cb19181a4acb5103d0075cd
4
+ data.tar.gz: d37215027908debf7b921d8c77e4f0538efacc03
5
5
  SHA512:
6
- metadata.gz: 1050c10ce1edadba8fe2eb0a92985ad3bb3d117e8b9c65ef7f4941ac7c319d0ecd2a8f0992081e597425458d7986263012198590d96080d8ce254c854283c71e
7
- data.tar.gz: ed6a41d8c3e2f45a48e17c20b12687e8595e2a8fae1697898ab3a04b906f1ee8327b99e028b213ac4906c9f9c9010b77535f42805625c793b421aa760d597bc4
6
+ metadata.gz: 8418dbd71721319950fe942bec2803bd08623809a760785827cfc519ccc7587f83c917574597f5db2032906ee790e3ef44e003f21f0a9720d090e5e070f17c99
7
+ data.tar.gz: f4da97bc8eb6f81aea6d780cc0f97fd897c7ed29eb2bb149b390264af98a2e17cf12bf1f91f7ca729da177f30a1b013c603b0c7a3f6d0d202d5ccb593b6fad3e
data/.travis.yml CHANGED
@@ -1,8 +1,22 @@
1
1
  language: ruby
2
2
  script : script/cibuild
3
+ sudo: false
4
+ cache: bundler
3
5
  rvm:
6
+ - 2.2
4
7
  - 2.1
5
8
  - 2.0
6
- - 1.9.3
7
9
  notifications:
8
10
  email: false
11
+ branches:
12
+ only:
13
+ - master
14
+
15
+ matrix:
16
+ include:
17
+ -
18
+ rvm: 1.9
19
+ env: JEKYLL_VERSION=2.0
20
+ env:
21
+ - JEKYLL_VERSION=3.0
22
+ - JEKYLL_VERSION=2.0
data/History.markdown CHANGED
@@ -1,8 +1,12 @@
1
- ## HEAD
1
+ ## 0.2.0 / 2015-11-25
2
2
 
3
3
  ### Minor Enhancements
4
4
 
5
- ### Bug Fixes
5
+ * Bump Opal dependency to v0.8.x (#8)
6
+
7
+ ### Development Fixes
8
+
9
+ * Test against Jekyll 2 & 3 (#8)
6
10
 
7
11
  ## 0.1.0 / 2014-06-16
8
12
 
data/jekyll-opal.gemspec CHANGED
@@ -17,10 +17,10 @@ Gem::Specification.new do |spec|
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
18
  spec.require_paths = ["lib"]
19
19
 
20
- spec.add_runtime_dependency "opal", "~> 0.6.0"
20
+ spec.add_runtime_dependency "opal", "~> 0.8.0"
21
21
 
22
22
  spec.add_development_dependency "bundler", "~> 1.6"
23
23
  spec.add_development_dependency "rake"
24
24
  spec.add_development_dependency "rspec", "~> 3.0"
25
- spec.add_development_dependency "jekyll", "~> 2.0"
25
+ spec.add_development_dependency "jekyll", ENV["JEKYLL_VERSION"] ? "~> #{ENV["JEKYLL_VERSION"]}" : ">= 2.0"
26
26
  end
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Opal
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -5,11 +5,12 @@ describe(Jekyll::Converters::Opal) do
5
5
  let(:simple_opal) { "puts 'ohai jekyll'" }
6
6
  let(:simple_js_output) do
7
7
  <<-JS
8
- /* Generated by Opal 0.6.2 */
9
- (function($opal) {
10
- var self = $opal.top, $scope = $opal, nil = $opal.nil, $breaker = $opal.breaker, $slice = $opal.slice;
8
+ /* Generated by Opal 0.8.1 */
9
+ (function(Opal) {
10
+ Opal.dynamic_require_severity = "error";
11
+ var self = Opal.top, $scope = Opal, nil = Opal.nil, $breaker = Opal.breaker, $slice = Opal.slice;
11
12
 
12
- $opal.add_stubs(['$puts']);
13
+ Opal.add_stubs(['$puts']);
13
14
  return self.$puts("ohai jekyll")
14
15
  })(Opal);
15
16
  JS
@@ -28,7 +29,7 @@ JS
28
29
  end
29
30
 
30
31
  it "explodes on bad input" do
31
- expect(->{ subject.convert(bogus_opal) }).to raise_error
32
+ expect(->{ subject.convert(bogus_opal) }).to raise_error(RuntimeError)
32
33
  end
33
34
 
34
35
  end
@@ -10,7 +10,7 @@ describe(Jekyll::Generators::Opal) do
10
10
  end
11
11
 
12
12
  it "can build the opal stdlib" do
13
- expect(subject.opal_stdlib).to match("(Opal);")
13
+ expect(subject.opal_stdlib.to_s).to match("(Opal);")
14
14
  end
15
15
 
16
16
  context "when ensuring directory is there" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-opal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Parker Moore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-16 00:00:00.000000000 Z
11
+ date: 2015-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.6.0
19
+ version: 0.8.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.6.0
26
+ version: 0.8.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -70,14 +70,14 @@ dependencies:
70
70
  name: jekyll
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '2.0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '2.0'
83
83
  description:
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  version: '0'
125
125
  requirements: []
126
126
  rubyforge_project:
127
- rubygems_version: 2.2.2
127
+ rubygems_version: 2.2.5
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: Let Jekyll convert your Ruby into JavaScript using Opal.