lcclasses 0.0.4 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 963f0e3024da223712b69f1617de7582820160f7
4
+ data.tar.gz: f19f5674d2bd905610af34e914bdf2325d749ee3
5
+ SHA512:
6
+ metadata.gz: 9635f38fe6294f938197e6a752fcd327ba0a72f19a7d2d0ba33c175e6d7499a28186cdb7dcc31b0a081f8371ee899f6a1d8413bb9bf58491f4444e49580d70e3
7
+ data.tar.gz: b693f6646e97a715d0c221dabd397c467a6e40d10013822fd84f598ac40169dc0559ee880df062e65f037cd1f7d89275b01be4ac4fa0e574bb81dc286be041bf
data/.document CHANGED
@@ -1,4 +1,4 @@
1
- README.rdoc
1
+ README.markdown
2
2
  lib/**/*.rb
3
3
  bin/*
4
4
  features/**/*.feature
data/.gitignore CHANGED
@@ -3,3 +3,5 @@
3
3
  coverage
4
4
  rdoc
5
5
  pkg
6
+ .rvmrc
7
+ .ruby-version
data/README.markdown CHANGED
@@ -25,9 +25,9 @@ The entire set of classes can be retrieved in 3 formats:
25
25
 
26
26
  LCClasses::CLASS_HASH
27
27
  => # nested hash of classes and subclasses
28
- LCClases.nested
28
+ LCClasses.nested
29
29
  => # nested array of classes and subclasses as LCClasses::LCClass objects
30
- LCClases.flat
30
+ LCClasses.flat
31
31
  => # flat array of classes and subclasses as LCClasses::LCClass objects
32
32
 
33
33
  The CLASS\_HASH conststant is in the following format (truncated example):
data/Rakefile CHANGED
@@ -1,21 +1,15 @@
1
- require 'rubygems'
2
- require 'rake'
1
+ # encoding: utf-8
3
2
 
3
+ require 'rubygems'
4
+ require 'bundler'
4
5
  begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
7
- gem.name = "lcclasses"
8
- gem.summary = %Q{Library of Congress Classification classes and subclasses}
9
- gem.description = %Q{Library of Congress Classification classes and subclasses}
10
- gem.email = "hi@williammelody.com"
11
- gem.homepage = "http://github.com/alphabetum/lcclasses"
12
- gem.authors = ["William Melody"]
13
- gem.add_development_dependency "thoughtbot-shoulda"
14
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
15
- end
16
- rescue LoadError
17
- puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
18
11
  end
12
+ require 'rake'
19
13
 
20
14
  require 'rake/testtask'
21
15
  Rake::TestTask.new(:test) do |test|
@@ -24,30 +18,11 @@ Rake::TestTask.new(:test) do |test|
24
18
  test.verbose = true
25
19
  end
26
20
 
27
- begin
28
- require 'rcov/rcovtask'
29
- Rcov::RcovTask.new do |test|
30
- test.libs << 'test'
31
- test.pattern = 'test/**/test_*.rb'
32
- test.verbose = true
33
- end
34
- rescue LoadError
35
- task :rcov do
36
- abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
37
- end
38
- end
39
-
40
- task :test => :check_dependencies
41
-
42
21
  task :default => :test
43
22
 
44
- require 'rake/rdoctask'
23
+ require 'rdoc/task'
45
24
  Rake::RDocTask.new do |rdoc|
46
- if File.exist?('VERSION')
47
- version = File.read('VERSION')
48
- else
49
- version = ""
50
- end
25
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
51
26
 
52
27
  rdoc.rdoc_dir = 'rdoc'
53
28
  rdoc.title = "lcclasses #{version}"
data/lcclasses.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{lcclasses}
8
- s.version = "0.0.4"
8
+ s.version = "0.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["William Melody"]
12
- s.date = %q{2010-03-29}
12
+ s.date = %q{2014-01-12}
13
13
  s.description = %q{Library of Congress Classification classes and subclasses}
14
14
  s.email = %q{hi@williammelody.com}
15
15
  s.extra_rdoc_files = [
@@ -22,33 +22,37 @@ Gem::Specification.new do |s|
22
22
  "LICENSE",
23
23
  "README.markdown",
24
24
  "Rakefile",
25
- "VERSION",
26
25
  "lcclasses.gemspec",
27
26
  "lib/lcclasses.rb",
28
- "test/test_helper.rb",
27
+ "test/helper.rb",
29
28
  "test/test_lcclasses.rb"
30
29
  ]
31
30
  s.homepage = %q{http://github.com/alphabetum/lcclasses}
31
+ s.licenses = ["MIT"]
32
32
  s.rdoc_options = ["--charset=UTF-8"]
33
33
  s.require_paths = ["lib"]
34
- s.rubygems_version = %q{1.3.6}
34
+ s.rubygems_version = %q{1.8.24}
35
35
  s.summary = %q{Library of Congress Classification classes and subclasses}
36
36
  s.test_files = [
37
- "test/test_helper.rb",
37
+ "test/helper.rb",
38
38
  "test/test_lcclasses.rb"
39
39
  ]
40
40
 
41
41
  if s.respond_to? :specification_version then
42
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
43
42
  s.specification_version = 3
44
43
 
45
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
46
- s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
44
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
45
+ s.add_development_dependency(%q<minitest>, ["~> 4.7.5"])
46
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
47
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
47
48
  else
48
- s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
49
+ s.add_dependency(%q<minitest>, ["~> 4.7.5"])
50
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
51
+ s.add_dependency(%q<shoulda>, [">= 0"])
49
52
  end
50
53
  else
51
- s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
54
+ s.add_dependency(%q<minitest>, ["~> 4.7.5"])
55
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
56
+ s.add_dependency(%q<shoulda>, [">= 0"])
52
57
  end
53
- end
54
-
58
+ end
@@ -1,4 +1,12 @@
1
1
  require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
2
10
  require 'test/unit'
3
11
  require 'shoulda'
4
12
 
@@ -1,4 +1,4 @@
1
- require 'test_helper'
1
+ require 'helper'
2
2
 
3
3
  class TestLCClasses < Test::Unit::TestCase
4
4
 
metadata CHANGED
@@ -1,84 +1,99 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: lcclasses
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 0
8
- - 4
9
- version: 0.0.4
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
10
5
  platform: ruby
11
- authors:
6
+ authors:
12
7
  - William Melody
13
8
  autorequire:
14
9
  bindir: bin
15
10
  cert_chain: []
16
-
17
- date: 2010-03-29 00:00:00 -05:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: thoughtbot-shoulda
11
+ date: 2014-01-12 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: minitest
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: 4.7.5
20
+ type: :development
22
21
  prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
- version: "0"
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 4.7.5
27
+ - !ruby/object:Gem::Dependency
28
+ name: rdoc
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '3.12'
30
34
  type: :development
31
- version_requirements: *id001
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '3.12'
41
+ - !ruby/object:Gem::Dependency
42
+ name: shoulda
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
32
55
  description: Library of Congress Classification classes and subclasses
33
56
  email: hi@williammelody.com
34
57
  executables: []
35
-
36
58
  extensions: []
37
-
38
- extra_rdoc_files:
59
+ extra_rdoc_files:
39
60
  - LICENSE
40
61
  - README.markdown
41
- files:
62
+ files:
42
63
  - .document
43
64
  - .gitignore
44
65
  - LICENSE
45
66
  - README.markdown
46
67
  - Rakefile
47
- - VERSION
48
68
  - lcclasses.gemspec
49
69
  - lib/lcclasses.rb
50
- - test/test_helper.rb
70
+ - test/helper.rb
51
71
  - test/test_lcclasses.rb
52
- has_rdoc: true
53
72
  homepage: http://github.com/alphabetum/lcclasses
54
- licenses: []
55
-
73
+ licenses:
74
+ - MIT
75
+ metadata: {}
56
76
  post_install_message:
57
- rdoc_options:
77
+ rdoc_options:
58
78
  - --charset=UTF-8
59
- require_paths:
79
+ require_paths:
60
80
  - lib
61
- required_ruby_version: !ruby/object:Gem::Requirement
62
- requirements:
63
- - - ">="
64
- - !ruby/object:Gem::Version
65
- segments:
66
- - 0
67
- version: "0"
68
- required_rubygems_version: !ruby/object:Gem::Requirement
69
- requirements:
70
- - - ">="
71
- - !ruby/object:Gem::Version
72
- segments:
73
- - 0
74
- version: "0"
81
+ required_ruby_version: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ required_rubygems_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - '>='
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
75
91
  requirements: []
76
-
77
92
  rubyforge_project:
78
- rubygems_version: 1.3.6
93
+ rubygems_version: 2.1.10
79
94
  signing_key:
80
95
  specification_version: 3
81
96
  summary: Library of Congress Classification classes and subclasses
82
- test_files:
83
- - test/test_helper.rb
97
+ test_files:
98
+ - test/helper.rb
84
99
  - test/test_lcclasses.rb
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.0.4