trecs 0.3.15 → 0.3.16

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: 5aa1754f4d3004136025fc17d0668aa48cf21d72
4
- data.tar.gz: 8404df59ee0a4801668a9131f58a5fd42325c4ec
3
+ metadata.gz: b2d987a423e2135d128e4bc58705d6cc15679269
4
+ data.tar.gz: a4241d7f45696c816ca593663bb327d1131de9f2
5
5
  SHA512:
6
- metadata.gz: be03abfb4c1a4ad522e2cfaa365bb1c55f101f78bd389d49e7848c40506e28262400582963e74e633823586d85f314c7162c097eaa8c7d201ca48bbe0d10ab1b
7
- data.tar.gz: de3a81d7b2beee0e5404ec01349ab35184d59fd4e5898d285c881f1cc8e8eb06c4ec8123a010f2624767ed2dea583f97cb9fe19494e50c7bbaeb7d6e253fb4ba
6
+ metadata.gz: ca3b65d35f1a12db19714c71f109bcf430c8015a444ae00fc3486d11b2273e7fec1f1af218e7785d1790b37edc5983ba9976f1875e07b99f6d42cdaa0606d466
7
+ data.tar.gz: 3c84eb972f87cca56ab69d9beb5fdf4b87fe6b7aa0a7e54bcbdcfc5ae3e7d3813dd6c9ae2b92a8b9e1647b34d8ed93754fe69f8092fb68dbdf186ebaf4fce462
data/.travis.yml CHANGED
@@ -1,3 +1,4 @@
1
+ language: ruby
1
2
  rvm:
2
3
  - 1.9.2
3
4
  - 1.9.3
@@ -5,4 +6,4 @@ rvm:
5
6
  - 2.1.1
6
7
  - 2.1.2
7
8
  - ruby-head
8
- - jruby-19mode
9
+ - jruby-19mode
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trecs (0.3.15)
4
+ trecs (0.3.16)
5
5
  minitar (~> 0.5.4)
6
6
  trollop (~> 2.0)
7
7
 
data/lib/trecs/frame.rb CHANGED
@@ -28,6 +28,13 @@ module TRecs
28
28
  end
29
29
  alias :to_str :to_s
30
30
 
31
+ def to_h
32
+ {
33
+ content: content,
34
+ format: format
35
+ }
36
+ end
37
+
31
38
  def ==(other)
32
39
  other = Frame(other)
33
40
  to_s == other.to_s && format == other.format
@@ -14,7 +14,7 @@ module TRecs
14
14
 
15
15
 
16
16
  def current_content(content=nil)
17
- content.gsub!(/body {\n/, "pre.trecs-code {\n")
17
+ content.gsub!(/body {\n/, "div.trecs-code {\n")
18
18
  super(content)
19
19
  end
20
20
  end
data/lib/trecs/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module TRecs
2
- VERSION = "0.3.15"
2
+ VERSION = "0.3.16"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trecs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.15
4
+ version: 0.3.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Federico Iachetti
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-30 00:00:00.000000000 Z
11
+ date: 2014-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trollop