yagni 1.2 → 1.3

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
- require File.expand_path('lib/yell/version')
3
+ require File.expand_path('lib/yagni/version')
4
4
 
5
5
  require 'rubygems'
6
6
  require 'bundler'
@@ -16,16 +16,16 @@ require 'rake'
16
16
  require 'jeweler'
17
17
  Jeweler::Tasks.new do |gem|
18
18
  gem.name = "yagni"
19
- gem.version = Yell::VERSION
19
+ gem.version = Yagni::VERSION
20
20
 
21
- gem.homepage = "http://github.com/rmascarenhas/yell"
21
+ gem.homepage = "http://github.com/rmascarenhas/yagni"
22
22
  gem.license = "MIT"
23
23
 
24
- gem.summary = %Q{yell is a simple hash library which aims to provide
24
+ gem.summary = %Q{yagni is a simple hash library which aims to provide
25
25
  a method-like access}
26
26
 
27
27
  gem.description = <<-END
28
- yell provides an easy way to access your hash values using its
28
+ yagni provides an easy way to access your hash values using its
29
29
  simple, method-like notation. Useful when parsing complex hashes,
30
30
  or loading YAML or JSON files (but not limited to that!) and being
31
31
  able to access your data in an elegant manner
@@ -50,10 +50,10 @@ task :default => :spec
50
50
 
51
51
  require 'rake/rdoctask'
52
52
  Rake::RDocTask.new do |rdoc|
53
- version = Yell::VERSION
53
+ version = Yagni::VERSION
54
54
 
55
55
  rdoc.rdoc_dir = 'rdoc'
56
- rdoc.title = "yell #{version}"
56
+ rdoc.title = "yagni #{version}"
57
57
  rdoc.rdoc_files.include('README*')
58
58
  rdoc.rdoc_files.include('lib/**/*.rb')
59
59
  end
@@ -0,0 +1,6 @@
1
+ module Yagni
2
+
3
+ require_relative 'yagni/hash'
4
+ require_relative 'yagni/version'
5
+
6
+ end
@@ -1,13 +1,13 @@
1
- #lib/yell/hash.rbi
1
+ #lib/yagni/hash.rbi
2
2
 
3
- module Yell
3
+ module Yagni
4
4
 
5
- # Yell::Hash is a class that provides easy access to members,
5
+ # Yagni::Hash is a class that provides easy access to members,
6
6
  # in a method-like syntax.
7
7
  #
8
8
  # Usage:
9
9
  #
10
- # h = Yell::Hash.new({ :my => 'hash',
10
+ # h = Yagni::Hash.new({ :my => 'hash',
11
11
  # :is => { :just => 'awesome!' }
12
12
  # })
13
13
  #
@@ -31,16 +31,16 @@ module Yell
31
31
  #
32
32
  # # File: test.rb
33
33
  # require 'json'
34
- # require 'yell'
35
- # y = Yell::Hash.new { JSON.parse File.read('data.json') }
34
+ # require 'yagni'
35
+ # y = Yagni::Hash.new { JSON.parse File.read('data.json') }
36
36
  # y.my #=> "json"
37
- # # You need to call Yell::Hash#reload, otherwise we would have to
37
+ # # You need to call Yagni::Hash#reload, otherwise we would have to
38
38
  # # monkey patch Object::Hash, and that would be terrible!
39
39
  # y.reload #=> true
40
40
  # y.is.just #=> "awesome!"
41
41
  class Hash
42
42
 
43
- # Creates a new Yell::Hash instance. You can pass it an Object::Hash instance
43
+ # Creates a new Yagni::Hash instance. You can pass it an Object::Hash instance
44
44
  # directly, or a code block, which will return our hash. The data will be lazily
45
45
  # initialized, meaning that the block will be only called when you first
46
46
  # try to access a key.
@@ -0,0 +1,5 @@
1
+ #lib/yagni/version.rb
2
+
3
+ module Yagni #:nodoc:
4
+ VERSION = '1.3'
5
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yagni
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.2'
4
+ version: '1.3'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,87 +11,31 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2011-11-10 00:00:00.000000000 Z
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
17
- name: rspec
18
- requirement: &3181180 !ruby/object:Gem::Requirement
19
- none: false
20
- requirements:
21
- - - ! '>='
22
- - !ruby/object:Gem::Version
23
- version: '0'
24
- type: :development
25
- prerelease: false
26
- version_requirements: *3181180
27
- - !ruby/object:Gem::Dependency
28
- name: guard-rspec
29
- requirement: &3194000 !ruby/object:Gem::Requirement
30
- none: false
31
- requirements:
32
- - - ! '>='
33
- - !ruby/object:Gem::Version
34
- version: '0'
35
- type: :development
36
- prerelease: false
37
- version_requirements: *3194000
38
- - !ruby/object:Gem::Dependency
39
- name: bundler
40
- requirement: &3191720 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
- type: :development
47
- prerelease: false
48
- version_requirements: *3191720
49
- - !ruby/object:Gem::Dependency
50
- name: jeweler
51
- requirement: &3190020 !ruby/object:Gem::Requirement
52
- none: false
53
- requirements:
54
- - - ! '>='
55
- - !ruby/object:Gem::Version
56
- version: '0'
57
- type: :development
58
- prerelease: false
59
- version_requirements: *3190020
60
- description: ! " yell provides an easy way to access your hash values using its\n
14
+ date: 2011-11-14 00:00:00.000000000 Z
15
+ dependencies: []
16
+ description: ! " yagni provides an easy way to access your hash values using its\n
61
17
  \ simple, method-like notation. Useful when parsing complex hashes,\n or loading
62
18
  YAML or JSON files (but not limited to that!) and being\n able to access your
63
19
  data in an elegant manner \n"
64
20
  email: renato.mascosta@gmail.com
65
21
  executables: []
66
22
  extensions: []
67
- extra_rdoc_files:
68
- - LICENSE.txt
69
- - README.rdoc
23
+ extra_rdoc_files: []
70
24
  files:
71
25
  - .document
72
26
  - .rspec
73
- - .rvmrc
74
27
  - Gemfile
75
28
  - Gemfile.lock
76
29
  - Guardfile
77
30
  - LICENSE.txt
78
31
  - README.rdoc
79
32
  - Rakefile
80
- - lib/yell.rb
81
- - lib/yell/hash.rb
82
- - lib/yell/version.rb
83
- - rdoc/README_rdoc.html
84
- - rdoc/Yell.html
85
- - rdoc/Yell/Hash.html
86
- - rdoc/created.rid
87
- - rdoc/index.html
88
- - rdoc/lib/yell/hash_rb.html
89
- - rdoc/lib/yell/version_rb.html
90
- - rdoc/lib/yell_rb.html
91
- - rdoc/rdoc.css
33
+ - lib/yagni.rb
34
+ - lib/yagni/hash.rb
35
+ - lib/yagni/version.rb
92
36
  - spec/spec_helper.rb
93
37
  - spec/yell/hash_spec.rb
94
- homepage: http://github.com/rmascarenhas/yell
38
+ homepage: http://github.com/rmascarenhas/yagni
95
39
  licenses:
96
40
  - MIT
97
41
  post_install_message:
@@ -106,7 +50,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
50
  version: '0'
107
51
  segments:
108
52
  - 0
109
- hash: 3891352656799281921
53
+ hash: 595836757291395860
110
54
  required_rubygems_version: !ruby/object:Gem::Requirement
111
55
  none: false
112
56
  requirements:
@@ -118,5 +62,5 @@ rubyforge_project:
118
62
  rubygems_version: 1.8.10
119
63
  signing_key:
120
64
  specification_version: 3
121
- summary: yell is a simple hash library which aims to provide a method-like access
65
+ summary: yagni is a simple hash library which aims to provide a method-like access
122
66
  test_files: []
data/.rvmrc DELETED
@@ -1,55 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- # This is an RVM Project .rvmrc file, used to automatically load the ruby
4
- # development environment upon cd'ing into the directory
5
-
6
- # First we specify our desired <ruby>[@<gemset>], the @gemset name is optional.
7
- environment_id="ruby-1.9.3-p0@yell"
8
-
9
- #
10
- # Uncomment following line if you want options to be set only for given project.
11
- #
12
- # PROJECT_JRUBY_OPTS=( --1.9 )
13
-
14
- #
15
- # First we attempt to load the desired environment directly from the environment
16
- # file. This is very fast and efficient compared to running through the entire
17
- # CLI and selector. If you want feedback on which environment was used then
18
- # insert the word 'use' after --create as this triggers verbose mode.
19
- #
20
- if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \
21
- && -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
22
- then
23
- \. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
24
-
25
- if [[ -s "${rvm_path:-$HOME/.rvm}/hooks/after_use" ]]
26
- then
27
- . "${rvm_path:-$HOME/.rvm}/hooks/after_use"
28
- fi
29
- else
30
- # If the environment file has not yet been created, use the RVM CLI to select.
31
- if ! rvm --create "$environment_id"
32
- then
33
- echo "Failed to create RVM environment '${environment_id}'."
34
- exit 1
35
- fi
36
- fi
37
-
38
- #
39
- # If you use an RVM gemset file to install a list of gems (*.gems), you can have
40
- # it be automatically loaded. Uncomment the following and adjust the filename if
41
- # necessary.
42
- #
43
- # filename=".gems"
44
- # if [[ -s "$filename" ]]
45
- # then
46
- # rvm gemset import "$filename" | grep -v already | grep -v listed | grep -v complete | sed '/^$/d'
47
- # fi
48
-
49
- # If you use bundler, this might be useful to you:
50
- # if command -v bundle && [[ -s Gemfile ]]
51
- # then
52
- # bundle install
53
- # fi
54
-
55
-
@@ -1,6 +0,0 @@
1
- module Yell
2
-
3
- require_relative 'yell/hash'
4
- require_relative 'yell/version'
5
-
6
- end
@@ -1,5 +0,0 @@
1
- #lib/yell/version.rb
2
-
3
- module Yell #:nodoc:
4
- VERSION = '1.2'
5
- end
@@ -1,132 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
-
5
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
- <head>
7
- <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
8
-
9
- <title>File: README.rdoc [yell 1.0]</title>
10
-
11
- <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet" />
12
-
13
- <script src="./js/jquery.js" type="text/javascript"
14
- charset="utf-8"></script>
15
- <script src="./js/thickbox-compressed.js" type="text/javascript"
16
- charset="utf-8"></script>
17
- <script src="./js/quicksearch.js" type="text/javascript"
18
- charset="utf-8"></script>
19
- <script src="./js/darkfish.js" type="text/javascript"
20
- charset="utf-8"></script>
21
- </head>
22
-
23
- <body class="file">
24
- <div id="metadata">
25
- <div id="home-metadata">
26
- <div id="home-section" class="section">
27
- <h3 class="section-header">
28
- <a href="./index.html">Home</a>
29
- <a href="./index.html#classes">Classes</a>
30
- <a href="./index.html#methods">Methods</a>
31
- </h3>
32
- </div>
33
- </div>
34
-
35
- <div id="project-metadata">
36
-
37
-
38
- <div id="fileindex-section" class="section project-section">
39
- <h3 class="section-header">Files</h3>
40
- <ul>
41
-
42
- <li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
43
-
44
- </ul>
45
- </div>
46
-
47
-
48
- <div id="classindex-section" class="section project-section">
49
- <h3 class="section-header">Class Index
50
- <span class="search-toggle"><img src="./images/find.png"
51
- height="16" width="16" alt="[+]"
52
- title="show/hide quicksearch" /></span></h3>
53
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
54
- <fieldset>
55
- <legend>Quicksearch</legend>
56
- <input type="text" name="quicksearch" value=""
57
- class="quicksearch-field" />
58
- </fieldset>
59
- </form>
60
-
61
- <ul class="link-list">
62
-
63
- <li><a href="./Yell/Hash.html">Yell::Hash</a></li>
64
-
65
- </ul>
66
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
67
- </div>
68
-
69
-
70
- </div>
71
- </div>
72
-
73
- <div id="documentation">
74
- <h1>yell</h1>
75
- <p>
76
- Description goes here.
77
- </p>
78
- <h2>Contributing to yell</h2>
79
- <pre>
80
-
81
- </pre>
82
- <ul>
83
- <li><p>
84
- Check out the latest master to make sure the feature hasn&#8217;t been
85
- implemented or the bug hasn&#8217;t been fixed yet
86
- </p>
87
- </li>
88
- <li><p>
89
- Check out the issue tracker to make sure someone already hasn&#8217;t
90
- requested it and/or contributed it
91
- </p>
92
- </li>
93
- <li><p>
94
- Fork the project
95
- </p>
96
- </li>
97
- <li><p>
98
- Start a feature/bugfix branch
99
- </p>
100
- </li>
101
- <li><p>
102
- Commit and push until you are happy with your contribution
103
- </p>
104
- </li>
105
- <li><p>
106
- Make sure to add tests for it. This is important so I don&#8217;t break it
107
- in a future version unintentionally.
108
- </p>
109
- </li>
110
- <li><p>
111
- Please try not to mess with the Rakefile, version, or history. If you want
112
- to have your own version, or is otherwise necessary, that is fine, but
113
- please isolate to its own commit so I can cherry-pick around it.
114
- </p>
115
- </li>
116
- </ul>
117
- <h2>Copyright</h2>
118
- <p>
119
- Copyright &#169; 2011 Renato Mascarenhas. See LICENSE.txt for further
120
- details.
121
- </p>
122
-
123
- </div>
124
-
125
- <div id="validator-badges">
126
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
127
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
128
- Rdoc Generator</a> 1.1.6</small>.</p>
129
- </div>
130
- </body>
131
- </html>
132
-
@@ -1,158 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
- <head>
6
- <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
7
-
8
- <title>Module: Yell</title>
9
-
10
- <link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
11
-
12
- <script src="./js/jquery.js" type="text/javascript"
13
- charset="utf-8"></script>
14
- <script src="./js/thickbox-compressed.js" type="text/javascript"
15
- charset="utf-8"></script>
16
- <script src="./js/quicksearch.js" type="text/javascript"
17
- charset="utf-8"></script>
18
- <script src="./js/darkfish.js" type="text/javascript"
19
- charset="utf-8"></script>
20
-
21
- </head>
22
- <body class="module">
23
-
24
- <div id="metadata">
25
- <div id="home-metadata">
26
- <div id="home-section" class="section">
27
- <h3 class="section-header">
28
- <a href="./index.html">Home</a>
29
- <a href="./index.html#classes">Classes</a>
30
- <a href="./index.html#methods">Methods</a>
31
- </h3>
32
- </div>
33
- </div>
34
-
35
- <div id="file-metadata">
36
- <div id="file-list-section" class="section">
37
- <h3 class="section-header">In Files</h3>
38
- <div class="section-body">
39
- <ul>
40
-
41
- <li><a href="./lib/yell/version_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
42
- class="thickbox" title="lib/yell/version.rb">lib/yell/version.rb</a></li>
43
-
44
- <li><a href="./lib/yell/hash_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
45
- class="thickbox" title="lib/yell/hash.rb">lib/yell/hash.rb</a></li>
46
-
47
- <li><a href="./lib/yell_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
48
- class="thickbox" title="lib/yell.rb">lib/yell.rb</a></li>
49
-
50
- </ul>
51
- </div>
52
- </div>
53
-
54
-
55
- </div>
56
-
57
- <div id="class-metadata">
58
-
59
- <!-- Parent Class -->
60
-
61
-
62
- <!-- Namespace Contents -->
63
-
64
- <div id="namespace-list-section" class="section">
65
- <h3 class="section-header">Namespace</h3>
66
- <ul class="link-list">
67
-
68
- <li><span class="type">CLASS</span> <a href="Yell/Hash.html">Yell::Hash</a></li>
69
-
70
- </ul>
71
- </div>
72
-
73
-
74
- <!-- Method Quickref -->
75
-
76
-
77
- <!-- Included Modules -->
78
-
79
- </div>
80
-
81
- <div id="project-metadata">
82
-
83
-
84
- <div id="fileindex-section" class="section project-section">
85
- <h3 class="section-header">Files</h3>
86
- <ul>
87
-
88
- <li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
89
-
90
- </ul>
91
- </div>
92
-
93
-
94
- <div id="classindex-section" class="section project-section">
95
- <h3 class="section-header">Class Index
96
- <span class="search-toggle"><img src="./images/find.png"
97
- height="16" width="16" alt="[+]"
98
- title="show/hide quicksearch" /></span></h3>
99
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
100
- <fieldset>
101
- <legend>Quicksearch</legend>
102
- <input type="text" name="quicksearch" value=""
103
- class="quicksearch-field" />
104
- </fieldset>
105
- </form>
106
-
107
- <ul class="link-list">
108
-
109
- <li><a href="./Yell/Hash.html">Yell::Hash</a></li>
110
-
111
- </ul>
112
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
113
- </div>
114
-
115
-
116
- </div>
117
- </div>
118
-
119
- <div id="documentation">
120
- <h1 class="module">Yell</h1>
121
-
122
- <div id="description">
123
- <p>
124
- <a href="lib/yell/version_rb.html">lib/yell/version.rb</a>
125
- </p>
126
- <hr style="height: 1px"></hr><p>
127
- lib/yell/hash.rbi
128
- </p>
129
-
130
- </div>
131
-
132
- <!-- Constants -->
133
-
134
-
135
- <!-- Attributes -->
136
-
137
-
138
- <!-- Methods -->
139
-
140
-
141
- </div>
142
-
143
-
144
- <div id="rdoc-debugging-section-dump" class="debugging-section">
145
-
146
- <p>Disabled; run with --debug to generate this.</p>
147
-
148
- </div>
149
-
150
- <div id="validator-badges">
151
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
152
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
153
- Rdoc Generator</a> 1.1.6</small>.</p>
154
- </div>
155
-
156
- </body>
157
- </html>
158
-