sexpr 0.6.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/sexpr.noespec DELETED
@@ -1,33 +0,0 @@
1
- template-info:
2
- name: "rubygem.noe"
3
- version: 2.0.1
4
- links:
5
- source: https://github.com/blambeau/noe
6
- manifest:
7
- tasks/unit_test.rake:
8
- ignore: true
9
- safe_override: false
10
- tasks/spec_test.rake:
11
- ignore: true
12
- safe_override: false
13
- variables:
14
- lower:
15
- sexpr
16
- upper:
17
- Sexpr
18
- version:
19
- 0.6.0
20
- summary: |-
21
- A compilation framework around s-expressions
22
- description: |-
23
- Sexpr helps manipulating s-expressions in ruby.
24
- authors:
25
- - {name: Bernard Lambeau, email: blambeau@gmail.com}
26
- links:
27
- - https://github.com/blambeau/sexp
28
- dependencies:
29
- - {name: path, version: "~> 1.3", groups: [development]}
30
- - {name: citrus, version: "~> 2.4", groups: [development]}
31
- - {name: rake, version: "~> 10.0", groups: [development]}
32
- - {name: rspec, version: "~> 2.10", groups: [development]}
33
- - {name: wlang, version: "~> 0.10.2", groups: [development]}
@@ -1,75 +0,0 @@
1
- # Installs a rake task for debuging the announcement mail.
2
- #
3
- # This file installs the 'rake debug_mail' that flushes an announcement mail
4
- # for your library on the standard output. It is automatically generated
5
- # by Noe from your .noespec file, and should therefore be configured there,
6
- # under the variables/rake_tasks/debug_mail entry, as illustrated below:
7
- #
8
- # variables:
9
- # rake_tasks:
10
- # debug_mail:
11
- # rx_changelog_sections: /^#/
12
- # nb_changelog_sections: 1
13
- # ...
14
- #
15
- # If you have specific needs requiring manual intervention on this file,
16
- # don't forget to set safe-override to false in your noe specification:
17
- #
18
- # template-info:
19
- # manifest:
20
- # tasks/debug_mail.rake:
21
- # safe-override: false
22
- #
23
- # The mail template used can be found in debug_mail.txt. That file may be
24
- # changed to tune the mail you want to send. If you do so, don't forget to
25
- # add a manifest entry in your .noespec file to avoid overriding you
26
- # changes. The mail template uses wlang, with parentheses for block
27
- # delimiters.
28
- #
29
- # template-info:
30
- # manifest:
31
- # tasks/debug_mail.txt:
32
- # safe-override: false
33
- #
34
- desc "Debug the release announcement mail"
35
- task :debug_mail do
36
- begin
37
- require 'wlang'
38
- rescue LoadError
39
- abort "wlang is not available. Try 'gem install wlang'"
40
- end
41
- require 'yaml'
42
-
43
- # Check that a .noespec file exists
44
- noespec_file = File.expand_path('../../sexpr.noespec', __FILE__)
45
- unless File.exists?(noespec_file)
46
- raise "Unable to find .noespec project file, sorry."
47
- end
48
-
49
- # Load it as well as variables and options
50
- noespec = YAML::load(File.read(noespec_file))
51
- vars = noespec['variables'] || {}
52
-
53
- # Changes are taken from CHANGELOG
54
- logs = Dir[File.expand_path("../../CHANGELOG.*", __FILE__)]
55
- unless logs.size == 1
56
- abort "Unable to find a changelog file"
57
- end
58
-
59
- # Load interesting changesets
60
- changes, end_found = [], 0
61
- File.readlines(logs.first).select{|line|
62
- if line =~ /^# /
63
- break if end_found >= 1
64
- end_found += 1
65
- end
66
- changes << line
67
- }
68
- vars['changes'] = changes.join
69
-
70
- # WLang template
71
- template = File.expand_path('../debug_mail.txt', __FILE__)
72
-
73
- # Let's go!
74
- $stdout << WLang::file_instantiate(template, vars, "wlang/active-text")
75
- end
data/tasks/debug_mail.txt DELETED
@@ -1,13 +0,0 @@
1
- Subject: [ANN] !{lower} !{version} Released
2
-
3
- !{lower} version !{version} has been released!
4
-
5
- !{summary}
6
-
7
- *{links as l}{* <!{l}>}{!{"\n"}}
8
-
9
- !{description}
10
-
11
- Changes:
12
-
13
- !{changes}
data/tasks/yard.rake DELETED
@@ -1,51 +0,0 @@
1
- # Installs a rake task to generate API documentation using yard.
2
- #
3
- # This file installs the 'rake yard' task. It is automatically generated by Noe from
4
- # your .noespec file, and should therefore be configured there, under the
5
- # variables/rake_tasks/yard entry, as illustrated below:
6
- #
7
- # variables:
8
- # rake_tasks:
9
- # yard:
10
- # files: lib/**/*.rb
11
- # options: []
12
- # ...
13
- #
14
- # If you have specific needs requiring manual intervention on this file,
15
- # don't forget to set safe-override to false in your noe specification:
16
- #
17
- # template-info:
18
- # manifest:
19
- # tasks/yard.rake:
20
- # safe-override: false
21
- #
22
- # This file has been written to conform to yard v0.6.4. More information about
23
- # yard and the rake task installed below can be found on http://yardoc.org/
24
- #
25
- begin
26
- require "yard"
27
- desc "Generate yard documentation"
28
- YARD::Rake::YardocTask.new(:yard) do |t|
29
- # Array of options passed to yardoc commandline. See 'yardoc --help' about this
30
- t.options = ["--output-dir", "doc/api", "-", "README.md", "CHANGELOG.md", "LICENCE.md"]
31
-
32
- # Array of ruby source files (and any extra documentation files
33
- # separated by '-')
34
- t.files = ["lib/**/*.rb"]
35
-
36
- # A proc to call before running the task
37
- # t.before = proc{ }
38
-
39
- # A proc to call after running the task
40
- # r.after = proc{ }
41
-
42
- # An optional lambda to run against all objects being generated.
43
- # Any object that the lambda returns false for will be excluded
44
- # from documentation.
45
- # t.verifier = lambda{|obj| true}
46
- end
47
- rescue LoadError
48
- task :yard do
49
- abort 'yard is not available. In order to run yard, you must: gem install yard'
50
- end
51
- end