motion-yaml 1.2 → 1.2.1

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: ad07686e297096a733a92d4f34e04b60ffb0f8c1
4
- data.tar.gz: 8a2737953eb73e35c4e59a7b85aabefb27a1e69e
3
+ metadata.gz: a4f00677248fb0cdcc9af3a84b734703247b16bf
4
+ data.tar.gz: 60be3b4a8c0024009c5483b92ea1a6c60ab81301
5
5
  SHA512:
6
- metadata.gz: 6a4e47bd960f949acf69c9048b6bb70e7c3218b8bc05eacb261420f6d64aacf9f9ae390d40a0570b84f60842214b053818ca408b8bbde46997c6c43b6f101314
7
- data.tar.gz: 76a9f605df96cdab2fcf068371a96d1bd693d5791c54e9bd7112df705dcb60560907c6dc0cbde5c8fed09286547a73d2826344af43aa6a1ad59d6ba7f4fc133c
6
+ metadata.gz: 3c5e4d00bb4a3473c53c01e76a1053b5f84cc04b6b2f67a8f7b29f0603fc066183accc7e5c24a9c4371dccf6547d5f44e23a8064d87a5f804e92ad43a630230e
7
+ data.tar.gz: a343a6f4ed15e3df1e461c05403a1656064927a0e70f832dbfaa0a51e801217ff7a98756174d413a60e4d95b90e82bf225f4c8184ee2fdf9d17a5ed571970bf6
data/README.md CHANGED
@@ -8,7 +8,7 @@ motion-yaml provides methods to access "YAML Ain't Markup Language" for RubyMoti
8
8
 
9
9
  ## Installation
10
10
 
11
- ```
11
+ ```bash
12
12
  $ sudo gem install motion-yaml
13
13
  ```
14
14
 
@@ -16,8 +16,10 @@ $ sudo gem install motion-yaml
16
16
 
17
17
  1. Edit the `Rakefile` of your RubyMotion project and add the following require lines.
18
18
 
19
- require 'rubygems'
20
- require 'motion-yaml'
19
+ ```ruby
20
+ require 'rubygems'
21
+ require 'motion-yaml'
22
+ ```
21
23
 
22
24
  ## Methods
23
25
 
@@ -25,19 +27,25 @@ $ sudo gem install motion-yaml
25
27
 
26
28
  - Converts _obj_ to YAML.
27
29
 
28
- YAML.dump([{ 'a' => 'b' }, 'foo']) #=> "- a: b\n- foo\n"
30
+ ```ruby
31
+ YAML.dump([{ 'a' => 'b' }, 'foo']) #=> "- a: b\n- foo\n"
32
+ ```
29
33
 
30
34
  ### YAML.load(string)
31
35
 
32
36
  - Loads YAML from a _string_.
33
37
 
34
- YAML.load("- a: b\n- foo\n") #=> [{"a"=>"b"}, "foo"]
38
+ ```ruby
39
+ YAML.load("- a: b\n- foo\n") #=> [{"a"=>"b"}, "foo"]
40
+ ```
35
41
 
36
42
  ### NSObject#to_yaml
37
43
 
38
44
  - Converts _self_ to YAML.
39
45
 
40
- [{ 'a' => 'b' }, 'foo'].to_yaml #=> "- a: b\n- foo\n"
46
+ ```ruby
47
+ [{ 'a' => 'b' }, 'foo'].to_yaml #=> "- a: b\n- foo\n"
48
+ ```
41
49
 
42
50
  ## Special thanks
43
51
 
Binary file
Binary file
@@ -24,6 +24,7 @@
24
24
 
25
25
  class YAML < YAMLKit
26
26
  def self.load(string)
27
+ string = string + "\n" if string[-1] != "\n"
27
28
  loadFromString(string)
28
29
  end
29
30
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-yaml
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.2'
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laurent Sansonetti
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-12 00:00:00.000000000 Z
12
+ date: 2014-08-10 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: motion-yaml provides methods to access "YAML Ain't Markup Language" for
15
15
  RubyMotion projects.
@@ -21,17 +21,18 @@ extensions: []
21
21
  extra_rdoc_files: []
22
22
  files:
23
23
  - README.md
24
- - lib/motion-yaml.rb
25
- - lib/project/yaml.rb
26
- - lib/YAMLKit/libYAMLKit_iOS.a
27
- - lib/YAMLKit/libYAMLKit_OSX.a
28
24
  - lib/YAMLKit/YAMLKit.h
29
25
  - lib/YAMLKit/YAMLKit_Prefix.pch
30
26
  - lib/YAMLKit/YKConstants.h
31
27
  - lib/YAMLKit/YKEmitter.h
32
28
  - lib/YAMLKit/YKParser.h
29
+ - lib/YAMLKit/libYAMLKit_OSX.a
30
+ - lib/YAMLKit/libYAMLKit_iOS.a
31
+ - lib/motion-yaml.rb
32
+ - lib/project/yaml.rb
33
33
  homepage: https://github.com/HipByte/motion-yaml
34
- licenses: []
34
+ licenses:
35
+ - MIT
35
36
  metadata: {}
36
37
  post_install_message:
37
38
  rdoc_options: []
@@ -39,17 +40,17 @@ require_paths:
39
40
  - lib
40
41
  required_ruby_version: !ruby/object:Gem::Requirement
41
42
  requirements:
42
- - - '>='
43
+ - - ">="
43
44
  - !ruby/object:Gem::Version
44
45
  version: '0'
45
46
  required_rubygems_version: !ruby/object:Gem::Requirement
46
47
  requirements:
47
- - - '>='
48
+ - - ">="
48
49
  - !ruby/object:Gem::Version
49
50
  version: '0'
50
51
  requirements: []
51
52
  rubyforge_project:
52
- rubygems_version: 2.1.2
53
+ rubygems_version: 2.3.0
53
54
  signing_key:
54
55
  specification_version: 4
55
56
  summary: motion-yaml provides methods to access "YAML Ain't Markup Language" for RubyMotion