requidef 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 Akira Hayakawa
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # requidef
2
+
3
+ ## Motivation
4
+
5
+ ## Installation
6
+
7
+ ## Contributing to requidef
8
+
9
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
10
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
11
+ * Fork the project
12
+ * Start a feature/bugfix branch
13
+ * Commit and push until you are happy with your contribution
14
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
15
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
16
+
17
+ ## Copyright
18
+
19
+ Copyright (c) 2011 Akira Hayakawa. See LICENSE.txt for
20
+ further details.
21
+
data/bin/.requidef.swp ADDED
Binary file
data/bin/Makefile ADDED
@@ -0,0 +1,12 @@
1
+ sample : dot_sample csv_sample
2
+
3
+ dot_sample :
4
+ ruby requidef -t dot -f sample.rd > sample.dot
5
+ dot -Tjpg sample.dot -o sample.jpg
6
+
7
+ csv_sample :
8
+ ruby requidef -t csv -f sample.rd > sample.csv
9
+
10
+ clean_sample :
11
+ rm sample.dot sample.csv sample.jpg
12
+
data/bin/requidef ADDED
@@ -0,0 +1,38 @@
1
+ #!ruby
2
+
3
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
4
+
5
+ require "requidef"
6
+ require "optparse"
7
+
8
+ def print_dot(input)
9
+ print dot(input)
10
+ end
11
+
12
+ def print_csv(input)
13
+ print csv(input)
14
+ end
15
+
16
+ if __FILE__ == $0
17
+ opt = OptionParser.new
18
+
19
+ type = nil
20
+ opt.on("-t VAL") do |v|
21
+ type = v
22
+ end
23
+
24
+ input = nil
25
+ opt.on("-f VAL") do |v|
26
+ input = v
27
+ end
28
+ opt.parse!(ARGV)
29
+
30
+ case type
31
+ when "dot"
32
+ print_dot(input)
33
+ when "csv"
34
+ print_csv(input)
35
+ else
36
+ raise "no match on file extension"
37
+ end
38
+ end
data/bin/sample.rd ADDED
@@ -0,0 +1,6 @@
1
+ - a
2
+ -- b
3
+ --- c
4
+ -- d
5
+ --- [[t:e]]
6
+ - >>t
metadata ADDED
@@ -0,0 +1,105 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: requidef
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Akira Hayakawa
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-08-20 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rspec
16
+ requirement: &11027760 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 2.3.0
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: *11027760
25
+ - !ruby/object:Gem::Dependency
26
+ name: bundler
27
+ requirement: &11027220 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: 1.0.0
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *11027220
36
+ - !ruby/object:Gem::Dependency
37
+ name: jeweler
38
+ requirement: &11026700 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: 1.6.4
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *11026700
47
+ - !ruby/object:Gem::Dependency
48
+ name: rcov
49
+ requirement: &11026160 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *11026160
58
+ description: Which do you use for your requirement definition job? MS Excel? MS Word?
59
+ Uninstall them. Because you will get a better solution.
60
+ email: ruby.wktk@gmail.com
61
+ executables:
62
+ - .requidef.swp
63
+ - Makefile
64
+ - requidef
65
+ - sample.rd
66
+ extensions: []
67
+ extra_rdoc_files:
68
+ - LICENSE.txt
69
+ - README.md
70
+ files:
71
+ - LICENSE.txt
72
+ - README.md
73
+ - bin/.requidef.swp
74
+ - bin/Makefile
75
+ - bin/requidef
76
+ - bin/sample.rd
77
+ homepage: http://github.com/akiradeveloper/requidef
78
+ licenses:
79
+ - MIT
80
+ post_install_message:
81
+ rdoc_options: []
82
+ require_paths:
83
+ - lib
84
+ required_ruby_version: !ruby/object:Gem::Requirement
85
+ none: false
86
+ requirements:
87
+ - - ! '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ segments:
91
+ - 0
92
+ hash: -2938751983039171718
93
+ required_rubygems_version: !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ requirements: []
100
+ rubyforge_project:
101
+ rubygems_version: 1.8.6
102
+ signing_key:
103
+ specification_version: 3
104
+ summary: Requiem for your Requirement Definition
105
+ test_files: []