methan 0.1.0 → 0.1.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: 3fc8f7fe210a2339258c2a4793e9355776b13ed5
4
- data.tar.gz: 6daa65eaf567519936e986ef1c1884e149d10a8b
3
+ metadata.gz: 8a7db260d051bde44805ae2cbaf37df18da9adc1
4
+ data.tar.gz: 397e86edcbb3d8fb87a158b14a1a7851a86bc975
5
5
  SHA512:
6
- metadata.gz: f4fbbe904d0537b478b19bfda828b2303a7939dacf1fdcdbd1fd7a47719a5c0f940bd0803efbd630ed39fd7e00d818ffa1d7ea6ec5e6a22eb762fa00362d4385
7
- data.tar.gz: 53187031a69cded020adef065cca8457d34760d0c7d79331071278feb30fd8dac6d76a129813e3839a2e405df50f7af2de1d8c068171844808dbcccc35925eae
6
+ metadata.gz: 3afd478c2d066dbb3c6ce0da9f0d2880c63bb9eaa1422c57754e05db3109a38debef1a2bc79bf116ce28160edf175ffb3fb3394e7e3505026d049cb670b61d46
7
+ data.tar.gz: 306dd174897384ed05cb1fa5e26393c4052c6172385dc8d4a3615be1c44f51b91dba293d24ad8c5254443e87330e0afb45e8484fa250af07f59421fa7134146f
data/exe/methan CHANGED
@@ -1,3 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
+ # coding: utf-8
2
3
  require "methan/console"
3
4
  Methan::Console.start(ARGV)
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require "methan/version"
2
3
 
3
4
  module Methan
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
 
2
3
  require "redcarpet"
3
4
 
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
 
2
3
  require "erb"
3
4
  require "rack"
@@ -95,7 +96,7 @@ module Methan
95
96
  }
96
97
  File.open(file) do |f|
97
98
  title = f.gets
98
- title = title.gsub(/^\#\s+/, "").gsub(/\s+\#$/, "").strip
99
+ title = title.force_encoding('utf-8').gsub(/^\#\s+/, "").gsub(/\s+\#$/, "").strip
99
100
  dat[:title] = title
100
101
  end
101
102
  dat
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
 
2
3
  class Hash
3
4
  def symbolize_keys
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  module Methan
2
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
3
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: methan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinichirow KAMITO
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-03-30 00:00:00.000000000 Z
11
+ date: 2015-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor