joenoon-url_safe_base64 0.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -21,33 +21,16 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
21
21
  rdoc.rdoc_files.include('lib/**/*.rb')
22
22
  end
23
23
 
24
- ## Rake task to create/update a .manifest file in your project, as well as update *.gemspec
25
- desc %{Update ".manifest" with the latest list of project filenames. Respect\
26
- .gitignore by excluding everything that git ignores. Update `files` and\
27
- `test_files` arrays in "*.gemspec" file if it's present.}
28
- task :manifest do
29
- list = Dir['**/*'].sort
30
- spec_file = Dir['*.gemspec'].first
31
- list -= [spec_file] if spec_file
32
-
33
- if File.exist?('.gitignore')
34
- File.read('.gitignore').each_line do |glob|
35
- glob = glob.chomp.sub(/^\//, '')
36
- list -= Dir[glob]
37
- list -= Dir["#{glob}/**/*"] if File.directory?(glob) and !File.symlink?(glob)
38
- puts "excluding #{glob}"
39
- end
24
+ begin
25
+ require 'jeweler'
26
+ Jeweler::Tasks.new do |gemspec|
27
+ gemspec.name = "joenoon-url_safe_base64"
28
+ gemspec.summary = "Coverts strings to/from a slightly modified base64 that contains only url-safe characters"
29
+ gemspec.description = "Coverts strings to/from a slightly modified base64 that contains only url-safe characters"
30
+ gemspec.email = "joenoon@gmail.com"
31
+ gemspec.homepage = "http://github.com/joenoon/url_safe_base64"
32
+ gemspec.authors = ["Joe Noon"]
40
33
  end
41
-
42
- if spec_file
43
- spec = File.read spec_file
44
- spec.gsub! /^(\s* s.(test_)?files \s* = \s* )( \[ [^\]]* \] | %w\( [^)]* \) )/mx do
45
- assignment = $1
46
- bunch = $2 ? list.grep(/^test\//) : list
47
- '%s%%w(%s)' % [assignment, bunch.join(' ')]
48
- end
49
-
50
- File.open(spec_file, 'w') {|f| f << spec }
51
- end
52
- File.open('.manifest', 'w') {|f| f << list.join("\n") }
34
+ rescue LoadError
35
+ puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
53
36
  end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.2.0
@@ -0,0 +1,49 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{joenoon-url_safe_base64}
8
+ s.version = "0.2.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Joe Noon"]
12
+ s.date = %q{2009-10-10}
13
+ s.description = %q{Coverts strings to/from a slightly modified base64 that contains only url-safe characters}
14
+ s.email = %q{joenoon@gmail.com}
15
+ s.extra_rdoc_files = [
16
+ "README"
17
+ ]
18
+ s.files = [
19
+ "MIT-LICENSE",
20
+ "README",
21
+ "Rakefile",
22
+ "VERSION",
23
+ "init.rb",
24
+ "joenoon-url_safe_base64.gemspec",
25
+ "lib/string_ext.rb",
26
+ "lib/url_safe_base64.rb",
27
+ "rails/init.rb",
28
+ "test/test_png.png",
29
+ "test/url_safe_base64_test.rb"
30
+ ]
31
+ s.homepage = %q{http://github.com/joenoon/url_safe_base64}
32
+ s.rdoc_options = ["--charset=UTF-8"]
33
+ s.require_paths = ["lib"]
34
+ s.rubygems_version = %q{1.3.5}
35
+ s.summary = %q{Coverts strings to/from a slightly modified base64 that contains only url-safe characters}
36
+ s.test_files = [
37
+ "test/url_safe_base64_test.rb"
38
+ ]
39
+
40
+ if s.respond_to? :specification_version then
41
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
42
+ s.specification_version = 3
43
+
44
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
45
+ else
46
+ end
47
+ else
48
+ end
49
+ end
@@ -7,7 +7,6 @@ class UrlSafeBase64Test < Test::Unit::TestCase
7
7
  TEST_NORM_ENCODE64 = "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAG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GI6UHwaEBUSE2kJErp2nSbXek2-yN56-RtNnQYlvdmvm_fzDfjsiwL_rPf9Xq1WPxVreL58fR0eHk5NDs7zLrQLGp4ka6uCtlsrVRiMEHTGCUAzxKJd7u7wXh8wCEEg_D96OhzOq0rCgfAAjAOugdgYprjMnt7sUym_wISWpeXHxcWTEXhATSeV3l-VNfHOx0kdAEM6oTj3pdKzxcX-4RcKlUrFh8CNAIBEotNhsNis8mcnLwSRZO-oAN0AJ5Eo9lKhRXPz79RtOz1epeWVtfXPR4PdvVlZ-dnoRCUZbsZrE28uKgdHDD1w0OGFi36fIlkEtOGYUiS9GJ-vunzsU5LbuoIZuWbm8GdEFPTTBN7UVRVlSWJJcTloO2fytfXbFfXbb2EdvtrPv_I7we3-0-rVSmXI-22Xc9wUl3TZMdCIVs-v6r-PTv7tLHhm5hQWq3I7e3Tu7suTRHHR4NB14_T0w_xOAqK_oBW_I_KylhWj8pqUllRJQ1gdX-fCczMTOIQnAR-eU3rWZZB1RwGkTkmCJGVFewE3m5vWxynU4SN0x30MILnN1tbbo7rE4S5uUwuh7PU6Lv2mDpOGRrlvN7cjKbTg9Ww969xfJxfW8M9dTvLZ4sxLghYwstUymXbkIBGej3c1nq53G40TMPwT01NJ5NYNzcygkh7ve8FGACA_yuDGxf1iwAAAABJRU5ErkJggg"
9
9
 
10
- # this is a silly trial and error way to test it
11
10
  MOD_GROUPS = {
12
11
  "0" => [TEST_FILE+'AB', TEST_FILE+'ABCDE'],
13
12
  "2" => [TEST_FILE, TEST_FILE+'ABC'],
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: joenoon-url_safe_base64
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.1"
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Noon
@@ -9,36 +9,37 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-08-21 00:00:00 -07:00
12
+ date: 2009-10-10 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
16
- description: URL-safe base64 encoding/decoding
17
- email: joe@stat.im
16
+ description: Coverts strings to/from a slightly modified base64 that contains only url-safe characters
17
+ email: joenoon@gmail.com
18
18
  executables: []
19
19
 
20
20
  extensions: []
21
21
 
22
- extra_rdoc_files: []
23
-
22
+ extra_rdoc_files:
23
+ - README
24
24
  files:
25
25
  - MIT-LICENSE
26
26
  - README
27
27
  - Rakefile
28
+ - VERSION
28
29
  - init.rb
29
- - lib
30
+ - joenoon-url_safe_base64.gemspec
30
31
  - lib/string_ext.rb
31
32
  - lib/url_safe_base64.rb
32
- - rails
33
33
  - rails/init.rb
34
- - test
35
34
  - test/test_png.png
36
35
  - test/url_safe_base64_test.rb
37
- has_rdoc: false
36
+ has_rdoc: true
38
37
  homepage: http://github.com/joenoon/url_safe_base64
39
- post_install_message:
40
- rdoc_options: []
38
+ licenses: []
41
39
 
40
+ post_install_message:
41
+ rdoc_options:
42
+ - --charset=UTF-8
42
43
  require_paths:
43
44
  - lib
44
45
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -56,9 +57,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
56
57
  requirements: []
57
58
 
58
59
  rubyforge_project:
59
- rubygems_version: 1.2.0
60
+ rubygems_version: 1.3.5
60
61
  signing_key:
61
- specification_version: 2
62
- summary: URL-safe base64 encoding/decoding
63
- test_files: []
64
-
62
+ specification_version: 3
63
+ summary: Coverts strings to/from a slightly modified base64 that contains only url-safe characters
64
+ test_files:
65
+ - test/url_safe_base64_test.rb