juli 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c07761a500166a6eebb2e082600dbc97d2687d1d
4
- data.tar.gz: fa6bb4a9b3af8b9db0d0cab95659816a73c485b2
3
+ metadata.gz: 02d875c32a6a91a0cf006a8e98879e8ea4e5427e
4
+ data.tar.gz: dab0c5162d3156bc50627d371651d56f36a9dfec
5
5
  SHA512:
6
- metadata.gz: 7f520f40af1f9876a55df21fe1aebb1ef1b8fc8d25f6877eb899e0e35297603a99184c9a84f2ff7d5449273ff1a65ce4b4972cafa45416da8010d2b5bfd98b87
7
- data.tar.gz: 298e3aebca19c9b846081a8850761f3cea35a6db1c604409c14368860fbe018a59482d4706ed6cad84460961ba05d271edcda2ed9da0c6bcd3d5f436b82f5438
6
+ metadata.gz: fe6418e5d4f282e023d229c6a2cd6ecf29132da2c61884ef9e13713e086d41c23fcc79aadfc6974cf93b0c8d26625635ac760e7b49423528974e2376a870dea7
7
+ data.tar.gz: d7170c6378aed0b4729a77de57c3c636f4c8996cfb8734c7adff3bd14f5edef47e27b3f53e4f1b89503bdaaa5f7ce2190e72c7e45aaf619dc05cb4352b319899
data/README.rdoc CHANGED
@@ -1,39 +1,49 @@
1
1
  == Juli
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/juli`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ Juli is an offline wiki & outliner with your favorite editor.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
6
-
7
- ## Installation
5
+ === Installation
8
6
 
9
7
  Add this line to your application's Gemfile:
10
8
 
11
- ```ruby
12
- gem 'juli'
13
- ```
9
+ gem 'juli'
14
10
 
15
11
  And then execute:
16
12
 
17
- $ bundle
13
+ $ bundle
18
14
 
19
15
  Or install it yourself as:
20
16
 
21
- $ gem install juli
17
+ $ gem install juli
18
+
19
+ === Usage
20
+
21
+ $ cd [YOUR-WIKI-ROOT]
22
+ $ juli init # run just once on [YOUR-WIKI-ROOT]
23
+ $ $EDITOR hello.txt # write your document.
24
+ $ juli # compile it to generate static HTML.
22
25
 
23
- == Usage
26
+ === Juli Version
24
27
 
25
- TODO: Write usage instructions here
28
+ 1.*:: obsoleted
29
+ 2.*:: for ruby2.2
26
30
 
27
- == Development
31
+ === Development
28
32
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
33
+ After checking out the repo, run `bin/setup` to install dependencies.
34
+ Then, run `bin/console` for an interactive prompt that will allow you to
35
+ experiment.
30
36
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
37
+ To install this gem onto your local machine, run `bundle exec rake install`.
38
+ To release a new version, update the version number in `version.rb`,
39
+ and then run `bundle exec rake release` to create a git tag for the version,
40
+ push git commits and tags, and push the `.gem` file to
41
+ [rubygems.org](https://rubygems.org).
32
42
 
33
- == Contributing
43
+ === Contributing
34
44
 
35
- 1. Fork it ( https://github.com/[my-github-username]/juli/fork )
36
- 2. Create your feature branch (`git checkout -b my-new-feature`)
45
+ 1. Fork it ( https://github.com/fuminori-ido/juli/fork )
46
+ 2. Create your feature branch (`git checkout -b feature_NNNN`, where NNNN is a ticket No.)
37
47
  3. Commit your changes (`git commit -am 'Add some feature'`)
38
- 4. Push to the branch (`git push origin my-new-feature`)
48
+ 4. Push to the branch (`git push origin feature_NNNN`)
39
49
  5. Create a new Pull Request
data/Rakefile CHANGED
@@ -1,3 +1,4 @@
1
+ #require 'byebug'; byebug
1
2
  require "bundler/gem_tasks"
2
3
 
3
4
  $LOAD_PATH.insert(0, File.join(File.dirname(__FILE__), 'lib'))
@@ -30,25 +31,27 @@ Rake::TestTask.new('test' => parsers) do |t|
30
31
  t.verbose = true
31
32
  end
32
33
 
33
- desc "build package from HEAD with version #{Juli::VERSION}"
34
+ desc "build with parser.tab under right permission(022)"
34
35
  task :dist do
35
- pkg_name = "juli-#{Juli::VERSION}"
36
- work_prefix = "/tmp/#{pkg_name}"
37
- sh "git archive --format=tar --prefix=#{pkg_name}/ HEAD | gzip >#{work_prefix}.tgz"
36
+ old_umask = File.umask(022); begin
37
+ curr_dir = Dir.pwd
38
+ pkg_name = "juli-#{Juli::VERSION}"
39
+ work_prefix = "/tmp/#{pkg_name}-#{$$}"
38
40
 
39
- # include racc geneerated files
40
- FileUtils.mkdir_p work_prefix
41
- Dir.chdir work_prefix do
42
- sh "tar zxvf #{work_prefix}.tgz"
43
- Dir.chdir pkg_name do
44
- sh 'rake'
41
+ # include racc geneerated files
42
+ FileUtils.mkdir_p work_prefix
43
+ Dir.chdir work_prefix do
44
+ sh "git clone --local --depth 1 #{curr_dir} juli"
45
+ Dir.chdir 'juli' do
46
+ sh 'rake'
47
+ sh 'rake build'
48
+ end
45
49
  end
46
- sh "tar zcvf #{work_prefix}.tgz #{pkg_name}"
47
- end
48
- FileUtils.rm_rf work_prefix
50
+ FileUtils.mv "#{work_prefix}/juli/pkg/#{pkg_name}.gem", 'pkg/'
51
+ FileUtils.rm_rf work_prefix
52
+ end; File.umask(old_umask)
49
53
  end
50
54
 
51
-
52
55
  namespace :doc do
53
56
  desc 'generate HTML by juli'
54
57
  task :juli do
data/juli.gemspec CHANGED
@@ -10,19 +10,22 @@ Gem::Specification.new do |spec|
10
10
  spec.authors = ["ido"]
11
11
  spec.email = ["fuminori_ido@yahoo.co.jp"]
12
12
 
13
- spec.summary = %q{Offline wiki, and idea processor}
14
- spec.description = %q{Offline wiki, and idea processor}
13
+ spec.summary = %q{Offline wiki, and outline processor}
14
+ spec.description = %q{Offline wiki, and outline processor}
15
15
  spec.homepage = "https://github.com/fuminori-ido/juli"
16
16
  spec.license = "MIT"
17
17
 
18
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
19
- spec.bindir = "exe"
20
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
18
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } +
19
+ # generated by racc, should be in gem
20
+ %w(lib/juli/parser.tab.rb lib/juli/line_parser.tab.rb)
21
+ spec.bindir = 'bin'
22
+ spec.executables = 'juli'
21
23
  spec.require_paths = ["lib"]
22
24
 
25
+ spec.add_runtime_dependency 'i18n'
23
26
  spec.add_runtime_dependency 'racc'
24
27
  spec.add_runtime_dependency 'simplecov'
25
- spec.add_runtime_dependency 'RMagick'
28
+ spec.add_runtime_dependency 'rmagick'
26
29
 
27
30
  spec.add_development_dependency "bundler", "~> 1.9"
28
31
  spec.add_development_dependency "rake", "~> 10.0"
@@ -1,6 +1,6 @@
1
1
  require 'fileutils'
2
2
  require 'digest/sha1'
3
- require 'RMagick'
3
+ require 'rmagick'
4
4
  require 'pp'
5
5
 
6
6
  module Juli
data/lib/juli/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Juli
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: juli
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ido
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-18 00:00:00.000000000 Z
11
+ date: 2015-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: i18n
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: racc
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -39,7 +53,7 @@ dependencies:
39
53
  - !ruby/object:Gem::Version
40
54
  version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
- name: RMagick
56
+ name: rmagick
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
59
  - - ">="
@@ -80,10 +94,11 @@ dependencies:
80
94
  - - "~>"
81
95
  - !ruby/object:Gem::Version
82
96
  version: '10.0'
83
- description: Offline wiki, and idea processor
97
+ description: Offline wiki, and outline processor
84
98
  email:
85
99
  - fuminori_ido@yahoo.co.jp
86
- executables: []
100
+ executables:
101
+ - juli
87
102
  extensions: []
88
103
  extra_rdoc_files: []
89
104
  files:
@@ -143,6 +158,7 @@ files:
143
158
  - lib/juli/command/recent_update.rb
144
159
  - lib/juli/command/sitemap.rb
145
160
  - lib/juli/command/tag.rb
161
+ - lib/juli/line_parser.tab.rb
146
162
  - lib/juli/line_parser.y
147
163
  - lib/juli/macro.rb
148
164
  - lib/juli/macro/amazon.rb
@@ -152,6 +168,7 @@ files:
152
168
  - lib/juli/macro/template.rb
153
169
  - lib/juli/macro/template_base.rb
154
170
  - lib/juli/macro/wikipedia.rb
171
+ - lib/juli/parser.tab.rb
155
172
  - lib/juli/parser.y
156
173
  - lib/juli/template/default.html
157
174
  - lib/juli/template/facebook.html
@@ -207,5 +224,5 @@ rubyforge_project:
207
224
  rubygems_version: 2.4.5
208
225
  signing_key:
209
226
  specification_version: 4
210
- summary: Offline wiki, and idea processor
227
+ summary: Offline wiki, and outline processor
211
228
  test_files: []