eterps-publishing-grf 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -51,10 +51,11 @@ end
51
51
  class Publishing::GRF::Frame
52
52
  include Publishing::GRF::Node
53
53
 
54
- attr_reader :parent, :elements, :blocks, :number
54
+ attr_reader :parent, :id, :number, :elements, :blocks
55
55
 
56
56
  def initialize(params = {})
57
57
  @parent = params[:parent]
58
+ @id = params[:id]
58
59
  @number = params[:number]
59
60
  @elements = []
60
61
  @blocks = []
@@ -23,6 +23,8 @@ class Publishing::GRF::Reader
23
23
  )
24
24
  elsif attributes['class'] == 'frame'
25
25
  @pages.last.frames << Publishing::GRF::Frame.new(
26
+ :id => attributes['data-article-id'],
27
+ :number => attributes['data-article-number'],
26
28
  :parent => @pages.last
27
29
  )
28
30
  elsif attributes['class'].split.include?('element')
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{publishing-grf}
5
- s.version = "0.1.1"
5
+ s.version = "0.1.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Erik Terpstra"]
9
- s.date = %q{2009-06-16}
9
+ s.date = %q{2009-07-02}
10
10
  s.email = %q{erik@ruby-lang.nl}
11
11
  s.extra_rdoc_files = [
12
12
  "LICENSE",
@@ -31,16 +31,16 @@ Gem::Specification.new do |s|
31
31
  s.homepage = %q{http://github.com/eterps/publishing-grf}
32
32
  s.rdoc_options = ["--charset=UTF-8"]
33
33
  s.require_paths = ["lib"]
34
- s.rubygems_version = %q{1.3.1}
34
+ s.rubygems_version = %q{1.3.2}
35
35
  s.summary = %q{TODO}
36
36
  s.test_files = [
37
- "spec/spec_helper.rb",
38
- "spec/publishing-grf_spec.rb"
37
+ "spec/publishing-grf_spec.rb",
38
+ "spec/spec_helper.rb"
39
39
  ]
40
40
 
41
41
  if s.respond_to? :specification_version then
42
42
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
43
- s.specification_version = 2
43
+ s.specification_version = 3
44
44
 
45
45
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
46
46
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eterps-publishing-grf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Terpstra
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-16 00:00:00 -07:00
12
+ date: 2009-07-02 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -60,8 +60,8 @@ requirements: []
60
60
  rubyforge_project:
61
61
  rubygems_version: 1.2.0
62
62
  signing_key:
63
- specification_version: 2
63
+ specification_version: 3
64
64
  summary: TODO
65
65
  test_files:
66
- - spec/spec_helper.rb
67
66
  - spec/publishing-grf_spec.rb
67
+ - spec/spec_helper.rb