jsonbuilder 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README +4 -4
- data/Rakefile +2 -2
- data/lib/builder/{json_markup.rb → jsonmarkup.rb} +0 -15
- data/lib/jsonbuilder.rb +18 -0
- data/spec/builder/{json_markup_spec.rb → jsonmarkup_spec.rb} +0 -0
- data/spec/spec_helper.rb +1 -1
- metadata +4 -4
- data/lib/json_builder.rb +0 -1
data/README
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
=
|
1
|
+
= jsonbuilder
|
2
2
|
|
3
3
|
by nov <nov@cerego.com>
|
4
4
|
|
@@ -6,8 +6,8 @@
|
|
6
6
|
|
7
7
|
== Installation
|
8
8
|
|
9
|
-
git clone http://github.com/nov/
|
10
|
-
cd
|
9
|
+
git clone http://github.com/nov/jsonbuilder.git
|
10
|
+
cd jsonbuilder
|
11
11
|
rake install
|
12
12
|
|
13
13
|
=== Archive Installation
|
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
=== Gem Installation
|
18
18
|
|
19
|
-
gem install
|
19
|
+
gem install jsonbuilder
|
20
20
|
|
21
21
|
== Features/Problems
|
22
22
|
|
data/Rakefile
CHANGED
@@ -19,8 +19,8 @@ HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
|
|
19
19
|
BIN_FILES = %w( )
|
20
20
|
|
21
21
|
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/lib"
|
22
|
-
require 'lib/
|
23
|
-
VERS =
|
22
|
+
require 'lib/jsonbuilder'
|
23
|
+
VERS = JsonBuilder::Version.to_version
|
24
24
|
CLEAN.include ['*.gem', '.config']
|
25
25
|
RDOC_OPTS = [
|
26
26
|
"--title", "#{NAME} documentation",
|
@@ -8,21 +8,6 @@ module Builder
|
|
8
8
|
|
9
9
|
class JsonMarkup
|
10
10
|
|
11
|
-
module Version
|
12
|
-
MAJOR = 0
|
13
|
-
MINOR = 0
|
14
|
-
REVISION = 1
|
15
|
-
class << self
|
16
|
-
def to_version
|
17
|
-
"#{MAJOR}.#{MINOR}.#{REVISION}"
|
18
|
-
end
|
19
|
-
|
20
|
-
def to_name
|
21
|
-
"#{MAJOR}_#{MINOR}_#{REVISION}"
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
11
|
def initialize(options = {})
|
27
12
|
# @default_content_key is used in such case: markup.key(value, :attr_key => attr_value)
|
28
13
|
# in this case, we need some key for value.
|
data/lib/jsonbuilder.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
module JsonBuilder
|
2
|
+
module Version
|
3
|
+
MAJOR = 0
|
4
|
+
MINOR = 0
|
5
|
+
REVISION = 2
|
6
|
+
class << self
|
7
|
+
def to_version
|
8
|
+
"#{MAJOR}.#{MINOR}.#{REVISION}"
|
9
|
+
end
|
10
|
+
|
11
|
+
def to_name
|
12
|
+
"#{MAJOR}_#{MINOR}_#{REVISION}"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
require 'builder/jsonmarkup'
|
File without changes
|
data/spec/spec_helper.rb
CHANGED
@@ -6,7 +6,7 @@ rescue LoadError
|
|
6
6
|
require 'spec'
|
7
7
|
end
|
8
8
|
$LOAD_PATH.unshift(File.expand_path(File.join(File.dirname(__FILE__), "..", "lib")))
|
9
|
-
require File.join(File.dirname(__FILE__), '..', 'lib', '
|
9
|
+
require File.join(File.dirname(__FILE__), '..', 'lib', 'jsonbuilder')
|
10
10
|
|
11
11
|
def be_a(klass)
|
12
12
|
be_is_a(klass)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsonbuilder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nov
|
@@ -27,11 +27,11 @@ files:
|
|
27
27
|
- ChangeLog
|
28
28
|
- Rakefile
|
29
29
|
- spec/builder
|
30
|
-
- spec/builder/
|
30
|
+
- spec/builder/jsonmarkup_spec.rb
|
31
31
|
- spec/spec_helper.rb
|
32
32
|
- lib/builder
|
33
|
-
- lib/builder/
|
34
|
-
- lib/
|
33
|
+
- lib/builder/jsonmarkup.rb
|
34
|
+
- lib/jsonbuilder.rb
|
35
35
|
has_rdoc: true
|
36
36
|
homepage: http://jsonbuilder.rubyforge.org
|
37
37
|
post_install_message:
|
data/lib/json_builder.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'builder/json_markup'
|