spontaneous 0.2.0.beta2 → 0.2.0.beta3

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: c30bcb8452abe1751ba10d109eae7ac5e35cc041
4
- data.tar.gz: ac6cd7ce1fc89dcdd02b7a61e7ddb5a45ed8f7a2
3
+ metadata.gz: d327e71c9f7ef6a229475b92d7a9c24ad7a77ccf
4
+ data.tar.gz: 9f6803a4470abd5de575fb5b318774a444b8ac3c
5
5
  SHA512:
6
- metadata.gz: 6d220983cefbb9510f76ae41b23a777d63e9e0c6edd9206a68fc12428a4870575ea0ff2521ad1a30b700cdbc7fa2537659ed26446cd97e296661bbb834d81f84
7
- data.tar.gz: 760fbab63d0a18311a8fe71df6402a70c6edec1e4600a04b7c08092b8b63da6c7e1a633ac6a832ced6ace6c88ee2e260ac89185b9c79a588ca14dd9c57b53513
6
+ metadata.gz: 7e87bc4e0fad263152412de36f2e62f218b962744404ca9aa1110150f528851f8c94e601a42cb8dc4dcb24fbe02e4d0a3bd32bc2920b791a807362958ecba193
7
+ data.tar.gz: 8ae23b7eacbfb56dd35336c59c6ddb2a0a4b25ce48c691bff5661e06fd8b2af5393cf639a4a37e64411d09fb08edc3e375e62c626e1902defdb521d18f4a0dce
@@ -4,4 +4,4 @@ source :rubygems
4
4
  # this way I can test the installation process itself
5
5
 
6
6
  gem "rake"
7
- gem "minitest"
7
+ gem "minitest", '~> 4.6.0'
@@ -1,10 +1,8 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  require 'tempfile'
4
- require 'mini_magick'
5
4
  require 'delegate'
6
5
 
7
-
8
6
  module Spontaneous::Field
9
7
  class Image < File
10
8
  autoload :Size, 'spontaneous/field/image/size'
@@ -143,4 +141,3 @@ module Spontaneous::Field
143
141
  self.register(:image, :photo)
144
142
  end
145
143
  end
146
-
@@ -4,5 +4,4 @@
4
4
  //
5
5
  // ${ stylesheets('css/site') }
6
6
  //
7
- // e.g.
8
- // = require css/reset
7
+ // See: https://github.com/sstephenson/sprockets#sprockets-directives
@@ -3,4 +3,4 @@
3
3
  //
4
4
  // ${ scripts('js/site') }
5
5
  //
6
- // = require js/vendor/jquery
6
+ // See: https://github.com/sstephenson/sprockets#sprockets-directives
@@ -130,7 +130,7 @@ module Spontaneous
130
130
  end
131
131
 
132
132
  def to_json(options = {})
133
- to_s.to_json(options)
133
+ Spontaneous::JSON.encode(to_s)
134
134
  end
135
135
 
136
136
  def inspect
@@ -1,6 +1,6 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module Spontaneous
4
- VERSION = "0.2.0.beta2"
4
+ VERSION = "0.2.0.beta3"
5
5
  GEM = false
6
6
  end
data/spontaneous.gemspec CHANGED
@@ -36,7 +36,6 @@ Gem::Specification.new do |s|
36
36
  s.add_dependency('foreman', ['~> 0.60.2'])
37
37
  s.add_dependency('kramdown', ['~> 0.14.0'])
38
38
  s.add_dependency('launchy', ['~> 2.1.2'])
39
- s.add_dependency('mini_magick', ['~> 3.3'])
40
39
  s.add_dependency('nokogiri', ['~> 1.5.0'])
41
40
  s.add_dependency('posix-spawn', ['~> 0.3.6'])
42
41
  s.add_dependency('public_suffix', ['~> 1.0'])
@@ -144,6 +144,10 @@ describe "Schema" do
144
144
  @instance.layout.schema_id.must_equal @uids["llllllllllll"]
145
145
  end
146
146
 
147
+ it "should encode to JSON" do
148
+ @uids["llllllllllll"].to_json.must_equal '"llllllllllll"'
149
+ end
150
+
147
151
  describe "lookups" do
148
152
  it "return classes" do
149
153
  Site.schema.to_class("xxxxxxxxxxxx").must_equal SchemaClass
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spontaneous
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.beta2
4
+ version: 0.2.0.beta3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garry Hill
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-07 00:00:00.000000000 Z
11
+ date: 2013-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -150,20 +150,6 @@ dependencies:
150
150
  - - ~>
151
151
  - !ruby/object:Gem::Version
152
152
  version: 2.1.2
153
- - !ruby/object:Gem::Dependency
154
- name: mini_magick
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - ~>
158
- - !ruby/object:Gem::Version
159
- version: '3.3'
160
- type: :runtime
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - ~>
165
- - !ruby/object:Gem::Version
166
- version: '3.3'
167
153
  - !ruby/object:Gem::Dependency
168
154
  name: nokogiri
169
155
  requirement: !ruby/object:Gem::Requirement
@@ -734,7 +720,6 @@ files:
734
720
  - lib/spontaneous/generators/site/public/README.md
735
721
  - lib/spontaneous/generators/site/public/favicon.ico
736
722
  - lib/spontaneous/generators/site/public/robots.txt
737
- - lib/spontaneous/generators/site/schema/.map
738
723
  - lib/spontaneous/generators/site/schema/box.rb.tt
739
724
  - lib/spontaneous/generators/site/schema/page.rb.tt
740
725
  - lib/spontaneous/generators/site/schema/piece.rb.tt
@@ -1 +0,0 @@
1
- # TODO: create template for schema map