nis-ffi 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,12 +1,4 @@
1
1
  source "http://rubygems.org"
2
- # Add dependencies required to use your gem here.
3
- gem "ffi", "~> 1.0.0"
4
2
 
5
- # Add dependencies to develop your gem here.
6
- # Include everything needed to run rake, tests, features, etc.
7
- group :development do
8
- gem "bundler", "~> 1.0.0"
9
- gem "jeweler", "~> 1.5.2"
10
- gem "shoulda", ">= 0"
11
- gem "rcov", ">= 0"
12
- end
3
+ # Use dependencies from .gemspec
4
+ gemspec
data/LICENSE.txt CHANGED
@@ -1,4 +1,6 @@
1
- Copyright (c) 2011 Robin Stocker
1
+ Copyright (c) 2011-2012 Robin Stocker
2
+
3
+ MIT License
2
4
 
3
5
  Permission is hereby granted, free of charge, to any person obtaining
4
6
  a copy of this software and associated documentation files (the
data/README.rdoc CHANGED
@@ -27,6 +27,9 @@ add the ones you need. It's really easy thanks to ffi!
27
27
  have your own version, or is otherwise necessary, that is fine, but please
28
28
  isolate to its own commit so I can cherry-pick around it.
29
29
 
30
- == Copyright
30
+ == License
31
31
 
32
- Copyright (c) 2011 Robin Stocker. See LICENSE.txt for further details.
32
+ Copyright (c) 2011-2012 Robin Stocker.
33
+
34
+ nis-ffi is distributed under the MIT License, see LICENSE.txt for further
35
+ details.
data/Rakefile CHANGED
@@ -1,5 +1,4 @@
1
- require 'rubygems'
2
- require 'bundler'
1
+ require 'bundler/gem_tasks'
3
2
  begin
4
3
  Bundler.setup(:default, :development)
5
4
  rescue Bundler::BundlerError => e
@@ -7,47 +6,30 @@ rescue Bundler::BundlerError => e
7
6
  $stderr.puts "Run `bundle install` to install missing gems"
8
7
  exit e.status_code
9
8
  end
10
- require 'rake'
11
-
12
- RDOC_OPTIONS = ['--main', 'README.rdoc']
13
-
14
- require 'jeweler'
15
- Jeweler::Tasks.new do |gem|
16
- gem.name = "nis-ffi"
17
- gem.homepage = "http://github.com/robinst/nis-ffi"
18
- gem.license = "MIT"
19
- gem.summary = %Q{NIS (YP) library using libc's libnsl through ruby-ffi}
20
- gem.description = %Q{Library for NIS (YP) queries using the libnsl library of libc through ruby-ffi.}
21
- gem.email = "robin@nibor.org"
22
- gem.authors = ["Robin Stocker"]
23
- gem.add_dependency 'ffi', '~> 1.0.0'
24
- gem.rdoc_options = RDOC_OPTIONS
25
- end
26
- Jeweler::RubygemsDotOrgTasks.new
27
9
 
28
10
  require 'rake/testtask'
29
11
  Rake::TestTask.new(:test) do |test|
30
12
  test.libs << 'lib' << 'test'
31
- test.pattern = 'test/**/test_*.rb'
32
- test.verbose = true
33
- end
34
-
35
- require 'rcov/rcovtask'
36
- Rcov::RcovTask.new do |test|
37
- test.libs << 'test'
38
- test.pattern = 'test/**/test_*.rb'
13
+ # Work around rake issue #51:
14
+ test.test_files = FileList['test/**/test_*.rb']
15
+ #test.pattern = 'test/**/test_*.rb'
39
16
  test.verbose = true
40
17
  end
41
18
 
42
19
  task :default => :test
43
20
 
44
- require 'rake/rdoctask'
21
+ require 'rdoc/task'
45
22
  Rake::RDocTask.new do |rdoc|
46
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
23
+ version = NIS::Version::STRING
47
24
 
48
25
  rdoc.rdoc_dir = 'rdoc'
49
26
  rdoc.title = "nis-ffi #{version}"
50
- rdoc.options = RDOC_OPTIONS
27
+ rdoc.options = ['--main', 'README.rdoc']
51
28
  rdoc.rdoc_files.include('README*')
52
29
  rdoc.rdoc_files.include('lib/**/*.rb')
53
30
  end
31
+
32
+ # Change to Bundler::GemHelper.gemspec when it's released
33
+ $gemspec = Bundler.load_gemspec('nis-ffi.gemspec')
34
+
35
+ FileList['tasks/**/*.rake'].each { |task| import task }
@@ -0,0 +1,10 @@
1
+ module NIS
2
+ module Version
3
+ MAJOR = 0
4
+ MINOR = 2
5
+ PATCH = 2
6
+ BUILD = nil
7
+
8
+ STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
9
+ end
10
+ end
data/nis-ffi.gemspec CHANGED
@@ -1,73 +1,43 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
1
  # -*- encoding: utf-8 -*-
5
2
 
6
- Gem::Specification.new do |s|
7
- s.name = %q{nis-ffi}
8
- s.version = "0.2.1"
3
+ $LOAD_PATH.push File.expand_path("../lib", __FILE__)
4
+
5
+ require 'nis-ffi/version'
9
6
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
7
+ Gem::Specification.new do |s|
8
+ s.name = %q{nis-ffi}
9
+ s.version = NIS::Version::STRING
11
10
  s.authors = ["Robin Stocker"]
12
- s.date = %q{2011-02-18}
13
- s.description = %q{Library for NIS (YP) queries using the libnsl library of libc through ruby-ffi.}
14
11
  s.email = %q{robin@nibor.org}
12
+ s.homepage = %q{http://github.com/robinst/nis-ffi}
13
+ s.licenses = ["MIT"]
14
+ s.summary = %q{NIS (YP) library using libc's libnsl through ruby-ffi}
15
+ s.description = %q{Library for NIS (YP) queries using the libnsl library of libc through ruby-ffi.}
16
+ s.require_paths = ["lib"]
17
+ s.rdoc_options = ["--main", "README.rdoc"]
18
+ s.requirements = ["libnsl (provided by libc)"]
19
+
20
+ s.add_runtime_dependency 'ffi', '~> 1.0.0'
21
+ s.add_development_dependency 'bundler', '~> 1.0'
22
+ s.add_development_dependency 'rake', '~> 0.9.2'
23
+ s.add_development_dependency 'shoulda-context', '~> 1.0'
24
+
15
25
  s.extra_rdoc_files = [
16
26
  "LICENSE.txt",
17
- "README.rdoc"
27
+ "README.rdoc",
18
28
  ]
19
29
  s.files = [
20
30
  ".document",
21
31
  "Gemfile",
22
- "Gemfile.lock",
23
32
  "LICENSE.txt",
24
33
  "README.rdoc",
25
34
  "Rakefile",
26
- "VERSION",
27
35
  "lib/nis-ffi.rb",
36
+ "lib/nis-ffi/version.rb",
28
37
  "nis-ffi.gemspec",
38
+ "tasks/gemspec_check.rake",
29
39
  "test/helper.rb",
30
40
  "test/test_errors.rb",
31
- "test/test_server.rb"
32
- ]
33
- s.homepage = %q{http://github.com/robinst/nis-ffi}
34
- s.licenses = ["MIT"]
35
- s.rdoc_options = ["--main", "README.rdoc"]
36
- s.require_paths = ["lib"]
37
- s.rubygems_version = %q{1.3.7}
38
- s.summary = %q{NIS (YP) library using libc's libnsl through ruby-ffi}
39
- s.test_files = [
40
- "test/helper.rb",
41
- "test/test_errors.rb",
42
- "test/test_server.rb"
41
+ "test/test_server.rb",
43
42
  ]
44
-
45
- if s.respond_to? :specification_version then
46
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
47
- s.specification_version = 3
48
-
49
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
50
- s.add_runtime_dependency(%q<ffi>, ["~> 1.0.0"])
51
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
52
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
53
- s.add_development_dependency(%q<shoulda>, [">= 0"])
54
- s.add_development_dependency(%q<rcov>, [">= 0"])
55
- s.add_runtime_dependency(%q<ffi>, ["~> 1.0.0"])
56
- else
57
- s.add_dependency(%q<ffi>, ["~> 1.0.0"])
58
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
59
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
60
- s.add_dependency(%q<shoulda>, [">= 0"])
61
- s.add_dependency(%q<rcov>, [">= 0"])
62
- s.add_dependency(%q<ffi>, ["~> 1.0.0"])
63
- end
64
- else
65
- s.add_dependency(%q<ffi>, ["~> 1.0.0"])
66
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
67
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
68
- s.add_dependency(%q<shoulda>, [">= 0"])
69
- s.add_dependency(%q<rcov>, [">= 0"])
70
- s.add_dependency(%q<ffi>, ["~> 1.0.0"])
71
- end
72
43
  end
73
-
@@ -0,0 +1,19 @@
1
+ desc "Checks file list in .gemspec against files tracked in Git"
2
+ task :gemspec_check do |t|
3
+ exclude = ['.gitignore', '.travis.yml']
4
+ git_files = `git ls-files`.split("\n") - exclude
5
+ gemspec_files = $gemspec.files
6
+
7
+ only_in_gemspec = gemspec_files - git_files
8
+ only_in_git = git_files - gemspec_files
9
+
10
+ unless only_in_gemspec.empty?
11
+ puts "In gemspec but not in git:"
12
+ puts only_in_gemspec
13
+ end
14
+
15
+ unless only_in_git.empty?
16
+ puts "In git but not in gemspec:"
17
+ puts only_in_git
18
+ end
19
+ end
data/test/helper.rb CHANGED
@@ -8,7 +8,7 @@ rescue Bundler::BundlerError => e
8
8
  exit e.status_code
9
9
  end
10
10
  require 'test/unit'
11
- require 'shoulda'
11
+ require 'shoulda-context'
12
12
 
13
13
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
14
14
  $LOAD_PATH.unshift(File.dirname(__FILE__))
metadata CHANGED
@@ -1,173 +1,113 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: nis-ffi
3
- version: !ruby/object:Gem::Version
4
- hash: 21
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 2
9
- - 1
10
- version: 0.2.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.2
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Robin Stocker
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-02-18 00:00:00 +01:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2012-03-27 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: ffi
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &19127820 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
18
+ requirements:
26
19
  - - ~>
27
- - !ruby/object:Gem::Version
28
- hash: 23
29
- segments:
30
- - 1
31
- - 0
32
- - 0
20
+ - !ruby/object:Gem::Version
33
21
  version: 1.0.0
34
- prerelease: false
35
22
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
23
+ prerelease: false
24
+ version_requirements: *19127820
25
+ - !ruby/object:Gem::Dependency
38
26
  name: bundler
39
- requirement: &id002 !ruby/object:Gem::Requirement
27
+ requirement: &19127300 !ruby/object:Gem::Requirement
40
28
  none: false
41
- requirements:
29
+ requirements:
42
30
  - - ~>
43
- - !ruby/object:Gem::Version
44
- hash: 23
45
- segments:
46
- - 1
47
- - 0
48
- - 0
49
- version: 1.0.0
50
- prerelease: false
31
+ - !ruby/object:Gem::Version
32
+ version: '1.0'
51
33
  type: :development
52
- version_requirements: *id002
53
- - !ruby/object:Gem::Dependency
54
- name: jeweler
55
- requirement: &id003 !ruby/object:Gem::Requirement
34
+ prerelease: false
35
+ version_requirements: *19127300
36
+ - !ruby/object:Gem::Dependency
37
+ name: rake
38
+ requirement: &19126800 !ruby/object:Gem::Requirement
56
39
  none: false
57
- requirements:
40
+ requirements:
58
41
  - - ~>
59
- - !ruby/object:Gem::Version
60
- hash: 7
61
- segments:
62
- - 1
63
- - 5
64
- - 2
65
- version: 1.5.2
66
- prerelease: false
42
+ - !ruby/object:Gem::Version
43
+ version: 0.9.2
67
44
  type: :development
68
- version_requirements: *id003
69
- - !ruby/object:Gem::Dependency
70
- name: shoulda
71
- requirement: &id004 !ruby/object:Gem::Requirement
72
- none: false
73
- requirements:
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- hash: 3
77
- segments:
78
- - 0
79
- version: "0"
80
45
  prerelease: false
81
- type: :development
82
- version_requirements: *id004
83
- - !ruby/object:Gem::Dependency
84
- name: rcov
85
- requirement: &id005 !ruby/object:Gem::Requirement
46
+ version_requirements: *19126800
47
+ - !ruby/object:Gem::Dependency
48
+ name: shoulda-context
49
+ requirement: &19126340 !ruby/object:Gem::Requirement
86
50
  none: false
87
- requirements:
88
- - - ">="
89
- - !ruby/object:Gem::Version
90
- hash: 3
91
- segments:
92
- - 0
93
- version: "0"
94
- prerelease: false
95
- type: :development
96
- version_requirements: *id005
97
- - !ruby/object:Gem::Dependency
98
- name: ffi
99
- requirement: &id006 !ruby/object:Gem::Requirement
100
- none: false
101
- requirements:
51
+ requirements:
102
52
  - - ~>
103
- - !ruby/object:Gem::Version
104
- hash: 23
105
- segments:
106
- - 1
107
- - 0
108
- - 0
109
- version: 1.0.0
53
+ - !ruby/object:Gem::Version
54
+ version: '1.0'
55
+ type: :development
110
56
  prerelease: false
111
- type: :runtime
112
- version_requirements: *id006
113
- description: Library for NIS (YP) queries using the libnsl library of libc through ruby-ffi.
57
+ version_requirements: *19126340
58
+ description: Library for NIS (YP) queries using the libnsl library of libc through
59
+ ruby-ffi.
114
60
  email: robin@nibor.org
115
61
  executables: []
116
-
117
62
  extensions: []
118
-
119
- extra_rdoc_files:
63
+ extra_rdoc_files:
120
64
  - LICENSE.txt
121
65
  - README.rdoc
122
- files:
66
+ files:
123
67
  - .document
124
68
  - Gemfile
125
- - Gemfile.lock
126
69
  - LICENSE.txt
127
70
  - README.rdoc
128
71
  - Rakefile
129
- - VERSION
130
72
  - lib/nis-ffi.rb
73
+ - lib/nis-ffi/version.rb
131
74
  - nis-ffi.gemspec
75
+ - tasks/gemspec_check.rake
132
76
  - test/helper.rb
133
77
  - test/test_errors.rb
134
78
  - test/test_server.rb
135
- has_rdoc: true
136
79
  homepage: http://github.com/robinst/nis-ffi
137
- licenses:
80
+ licenses:
138
81
  - MIT
139
82
  post_install_message:
140
- rdoc_options:
83
+ rdoc_options:
141
84
  - --main
142
85
  - README.rdoc
143
- require_paths:
86
+ require_paths:
144
87
  - lib
145
- required_ruby_version: !ruby/object:Gem::Requirement
88
+ required_ruby_version: !ruby/object:Gem::Requirement
146
89
  none: false
147
- requirements:
148
- - - ">="
149
- - !ruby/object:Gem::Version
150
- hash: 3
151
- segments:
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ segments:
152
95
  - 0
153
- version: "0"
154
- required_rubygems_version: !ruby/object:Gem::Requirement
96
+ hash: 4048674834085464151
97
+ required_rubygems_version: !ruby/object:Gem::Requirement
155
98
  none: false
156
- requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- hash: 3
160
- segments:
99
+ requirements:
100
+ - - ! '>='
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ segments:
161
104
  - 0
162
- version: "0"
163
- requirements: []
164
-
105
+ hash: 4048674834085464151
106
+ requirements:
107
+ - libnsl (provided by libc)
165
108
  rubyforge_project:
166
- rubygems_version: 1.3.7
109
+ rubygems_version: 1.8.10
167
110
  signing_key:
168
111
  specification_version: 3
169
112
  summary: NIS (YP) library using libc's libnsl through ruby-ffi
170
- test_files:
171
- - test/helper.rb
172
- - test/test_errors.rb
173
- - test/test_server.rb
113
+ test_files: []
data/Gemfile.lock DELETED
@@ -1,26 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- ffi (1.0.5)
5
- rake (>= 0.8.7)
6
- ffi (1.0.5-java)
7
- git (1.2.5)
8
- jeweler (1.5.2)
9
- bundler (~> 1.0.0)
10
- git (>= 1.2.5)
11
- rake
12
- rake (0.8.7)
13
- rcov (0.9.9)
14
- rcov (0.9.9-java)
15
- shoulda (2.11.3)
16
-
17
- PLATFORMS
18
- java
19
- ruby
20
-
21
- DEPENDENCIES
22
- bundler (~> 1.0.0)
23
- ffi (~> 1.0.0)
24
- jeweler (~> 1.5.2)
25
- rcov
26
- shoulda
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.2.1