indentation 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/gemspec CHANGED
@@ -1,26 +1,17 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.unshift File.expand_path("../lib", __FILE__)
3
- require "indentation/version"
4
1
 
5
- Gem::Specification.new do |s|
6
- s.name = "indentation"
7
- s.version = Indentation::VERSION
8
- s.authors = ["Samuel Dana"]
9
- s.email = ["s.dana@prometheuscomputing.com"]
10
- s.homepage = ""
11
- s.summary = %q{A library of extensions to Ruby's Array and String classes that allow indentation manipulation of Strings and Arrays of Strings.}
12
- s.description = %q{A library of extensions to Ruby's Array and String classes that allow indentation manipulation of Strings and Arrays of Strings.}
13
-
14
- s.rubyforge_project = "indentation"
15
-
16
- s.post_install_message = %q{-------------------------------------------------------------------------------
17
- Thanks for installing the indentation gem! :)
2
+ # DO NOT HAND MODIFY
3
+ # This file was generated programmatically by MM
18
4
 
19
- For current information on indentation, see http://samueldana.github.com/indentation/
20
- -------------------------------------------------------------------------------}
21
-
22
- s.files = `git ls-files`.split("\n")
23
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
24
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
25
- s.require_paths = ["lib"]
26
- end
5
+ Gem::Specification.new do |s|
6
+ s.name = "indentation"
7
+ s.version = "0.0.7"
8
+ s.authors = ["Sam Dana"]
9
+ s.email = ["s.dana@prometheuscomputing.com"]
10
+ s.homepage = "http://samueldana.github.com/indentation/"
11
+ s.summary = "A library of extensions to Ruby's Array and String classes that allow indentation manipulation of Strings and Arrays of Strings."
12
+ s.description = "A library of extensions to Ruby's Array and String classes that allow indentation manipulation of Strings and Arrays of Strings."
13
+ s.require_paths = ['lib']
14
+ s.files = ["README.rdoc", "lib/indentation.rb", "lib/indentation/array_mod.rb", "lib/indentation/meta_info.rb", "lib/indentation/string_mod.rb", "spec/.rspec", "spec/indentation_spec.rb", "spec/spec_helper.rb"]
15
+ s.test_files = ["spec/indentation_spec.rb", "spec/spec_helper.rb"]
16
+ s.executables = []
17
+ end
data/lib/indentation.rb CHANGED
@@ -2,5 +2,4 @@ $:.unshift(File.dirname(__FILE__)) unless
2
2
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
3
 
4
4
  require 'indentation/string_mod.rb'
5
- require 'indentation/array_mod.rb'
6
- require 'indentation/version.rb'
5
+ require 'indentation/array_mod.rb'
@@ -0,0 +1,74 @@
1
+ # must not have the word m-o-d-u-l-e above the next line (so that a Regexp can figure out the m-o-d-u-l-e name)
2
+ module Indentation
3
+
4
+ # For more information about meta_info.rb, please see project Foundation, lib/Foundation/meta_info.rb
5
+
6
+ # SUGGESTION: Treat "Optional" as meaning "can be nil", and define all constants, even if the value happens to be nil.
7
+
8
+ # Required String
9
+ GEM_NAME = "indentation"
10
+ # Required String
11
+ VERSION = '0.0.7'
12
+ # Optional String or Array of Strings
13
+ AUTHORS = ["Sam Dana"]
14
+ # Optional String or Array of Strings
15
+ EMAILS = ["s.dana@prometheuscomputing.com"]
16
+ # Optional String
17
+ HOMEPAGE = "http://samueldana.github.com/indentation/"
18
+ # Required String
19
+ SUMMARY = %q{A library of extensions to Ruby's Array and String classes that allow indentation manipulation of Strings and Arrays of Strings.}
20
+ # Optional String
21
+ DESCRIPTION = SUMMARY
22
+
23
+ # Required Symbol
24
+ # This specifies the language the project is written in (not including the version, which is in LANGUAGE_VERSION).
25
+ # A project should only have one LANGUAGE (not including, for example DSLs such as templating languages).
26
+ # If a project has more than one language (not including DSLs), it should be split.
27
+ # TEMPORARY EXCEPTION: see :frankenstein choice below.
28
+ # The reason is that mixing up languages in one project complicates packaging, deployment, metrics, directory structure, and many other aspects of development.
29
+ # Choices are currently:
30
+ # * :ruby (implies packaging as gem - contains ZERO java code)
31
+ # * :java (implies packaging as jar, ear, war, sar, etc (depending on TYPE) - contains ZERO ruby code, with exception of meta_info.rb)
32
+ # * :frankenstein (implies packaging as gem - contains BOTH ruby and java code - will probably deprecate this in favor of two separate projects)
33
+ LANGUAGE = :ruby
34
+ # This differs from Runtime version - this specifies the version of the syntax of LANGUAGE
35
+ LANGUAGE_VERSION = ['> 1.8.1', '< 1.9.3']
36
+ # This is different from aGem::Specification.platform, which appears to be concerned with OS.
37
+ # This defines which implentation of Ruby, Java, etc can be used.
38
+ # Required Hash, in same format as DEPENDENCIES_RUBY.
39
+ # The version part is used by required_ruby_version
40
+ # Allowable keys depend on LANGUAGE. They are in VALID_<language.upcase>_RUNTIMES
41
+ RUNTIME_VERSIONS = {
42
+ :mri => ['> 1.8.1', '< 1.9.3'],
43
+ :jruby => ['1.6.4']
44
+ }
45
+ # Required Symbol
46
+ # Choices are currently:
47
+ # * :library - reusable functionality, not intended to stand alone
48
+ # * :utility - intended for use on command line
49
+ # * :web_app - an application that uses a web browser for it's GUI
50
+ # * :service - listens on some port. May include command line tools to manage the server.
51
+ # * :gui - has a Swing, Fox, WXwidget, etc GUI
52
+ TYPE = :library
53
+
54
+ # Optional Hashes - if nil, presumed to be empty.
55
+ # There may be additional dependencies, for platforms (such as :maglev) other than :mri and :jruby
56
+ # In the case of JRuby platform Ruby code that depends on a third party Java jar, where do we specify that?
57
+
58
+ # Trying to install this under Ruby 1.8.7 I get:
59
+ # Error installing MM-0.0.6.gem:
60
+ # simplecov requires multi_json (~> 1.0.3, runtime)
61
+ # So I have commented out some dependencies.
62
+ # FIX: these dependency collections need to be specific to a LANGUAGE_VERSION. Maybe RUNTIME_VERSIONS as well.
63
+ # We also need :simplecov => nil, but only on Ruby > 1.8 }
64
+ DEPENDENCIES_RUBY = { }
65
+ DEPENDENCIES_MRI = { }
66
+ DEPENDENCIES_JRUBY = { }
67
+ DEVELOPMENT_DEPENDENCIES_RUBY = { } # test-unit is reccomended but not required (color codes Test::Unit test results)
68
+ DEVELOPMENT_DEPENDENCIES_MRI = { }
69
+ DEVELOPMENT_DEPENDENCIES_JRUBY = { }
70
+
71
+ # An Array of strings that YARD will interpret as regular expressions of files to be excluded.
72
+ YARD_EXCLUDE = []
73
+
74
+ end
metadata CHANGED
@@ -1,84 +1,59 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: indentation
3
- version: !ruby/object:Gem::Version
4
- hash: 19
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.7
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 6
10
- version: 0.0.6
11
6
  platform: ruby
12
- authors:
13
- - Samuel Dana
7
+ authors:
8
+ - Sam Dana
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-08-23 00:00:00 Z
12
+ date: 2013-01-30 00:00:00.000000000 Z
19
13
  dependencies: []
20
-
21
- description: A library of extensions to Ruby's Array and String classes that allow indentation manipulation of Strings and Arrays of Strings.
22
- email:
14
+ description: A library of extensions to Ruby's Array and String classes that allow
15
+ indentation manipulation of Strings and Arrays of Strings.
16
+ email:
23
17
  - s.dana@prometheuscomputing.com
24
18
  executables: []
25
-
26
19
  extensions: []
27
-
28
20
  extra_rdoc_files: []
29
-
30
- files:
31
- - .gitattributes
32
- - .gitignore
33
- - History.txt
21
+ files:
34
22
  - README.rdoc
35
23
  - gemspec
36
24
  - lib/indentation.rb
37
25
  - lib/indentation/array_mod.rb
26
+ - lib/indentation/meta_info.rb
38
27
  - lib/indentation/string_mod.rb
39
- - lib/indentation/version.rb
40
- - run_tests
41
28
  - spec/.rspec
42
29
  - spec/indentation_spec.rb
43
30
  - spec/spec_helper.rb
44
- homepage: ""
31
+ homepage: http://samueldana.github.com/indentation/
45
32
  licenses: []
46
-
47
- post_install_message: |-
48
- -------------------------------------------------------------------------------
49
- Thanks for installing the indentation gem! :)
50
-
51
- For current information on indentation, see http://samueldana.github.com/indentation/
52
- -------------------------------------------------------------------------------
33
+ post_install_message:
53
34
  rdoc_options: []
54
-
55
- require_paths:
35
+ require_paths:
56
36
  - lib
57
- required_ruby_version: !ruby/object:Gem::Requirement
37
+ required_ruby_version: !ruby/object:Gem::Requirement
58
38
  none: false
59
- requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- hash: 3
63
- segments:
64
- - 0
65
- version: "0"
66
- required_rubygems_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ! '>='
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
44
  none: false
68
- requirements:
69
- - - ">="
70
- - !ruby/object:Gem::Version
71
- hash: 3
72
- segments:
73
- - 0
74
- version: "0"
45
+ requirements:
46
+ - - ! '>='
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
75
49
  requirements: []
76
-
77
- rubyforge_project: indentation
78
- rubygems_version: 1.8.5
50
+ rubyforge_project:
51
+ rubygems_version: 1.8.24
79
52
  signing_key:
80
53
  specification_version: 3
81
- summary: A library of extensions to Ruby's Array and String classes that allow indentation manipulation of Strings and Arrays of Strings.
82
- test_files:
54
+ summary: A library of extensions to Ruby's Array and String classes that allow indentation
55
+ manipulation of Strings and Arrays of Strings.
56
+ test_files:
83
57
  - spec/indentation_spec.rb
84
58
  - spec/spec_helper.rb
59
+ has_rdoc:
data/.gitattributes DELETED
@@ -1,6 +0,0 @@
1
- *.mdxml -crlf -diff -merge
2
- *.gz -crlf -diff -merge
3
- *.tiff -crlf -diff -merge
4
- *.jpg -crlf -diff -merge
5
- *.pdf -crlf -diff -merge
6
- *.png -crlf -diff -merge
data/.gitignore DELETED
@@ -1,15 +0,0 @@
1
- Temp
2
- test_results
3
- # Presumes docs are generated from other files
4
- doc
5
- .cvs
6
- .svn
7
- *.gem
8
- *.tgz
9
- *.zip
10
- *.jar
11
- .DS_Store
12
- .localized
13
- thumbs
14
- *.mdxml.bak
15
- pkg/
data/History.txt DELETED
@@ -1,30 +0,0 @@
1
- === 0.0.6 2011-08-23
2
- * Fixed documentation typo in gemspec
3
-
4
- === 0.0.5 2011-08-23
5
- * Removed autogenerated script/ and tasks/ directories
6
- * Removed outdated spec.opts file
7
- * Removed hoe dependency and newgem Rakefile
8
- * Added gemspec
9
- * Moved post-install message to gemspec and removed PostInstall.txt file
10
- * Removed Manifest.txt
11
- * Moved version information to lib/indentation/version.rb
12
- * Added run_tests script
13
-
14
- === 0.0.4 2011-02-17
15
- * Fixed documentation to include find_least_indentation function
16
- * Added options hash to find_least_indentation function with options to:
17
- * Ignore blank lines (zero-length lines)
18
- * Ignore empty lines (whitespace-only lines)
19
- * Modified specs to use rspec >= 2.0
20
-
21
- === 0.0.3 2010-05-07
22
- * Fixed documentation regarding installation and summary
23
-
24
- === 0.0.2 2010-05-05
25
- * Fixed several typos in docs, updated rspec tests.
26
- * Published to gemcutter
27
-
28
- === 0.0.1 2010-05-03
29
-
30
- * Initial release
@@ -1,3 +0,0 @@
1
- module Indentation
2
- VERSION = '0.0.6'
3
- end
data/run_tests DELETED
@@ -1,2 +0,0 @@
1
- #!/bin/bash
2
- rspec --colour --format documentation spec/