confluence-rest-api 1.0.6 → 1.0.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ef648c1789440d8b0568c147ecfa0f73977892eaeed56aae36a22b2d2f97505
4
- data.tar.gz: 5732c846ff1dda66a7ca5a63939551088cf9906fc10e78efdbcff2d7748b7f5d
3
+ metadata.gz: 467db99916f0a58726f23f8a0473c84d28246d5f25b02c1e5e417ec5d30c6f97
4
+ data.tar.gz: 95f2567ea0bbecdc261c29c42ab73576fbb974a75349d47daedaf6fade1c82cc
5
5
  SHA512:
6
- metadata.gz: b35aeb68b573092496b57cb5dfb4156dc551ac45bbb156485bd8815a99a3a5f6922ce1cc8243b734d20774293f281fbce650d24dc2402bba4d93fa3b83d64e37
7
- data.tar.gz: f9e68dbdfaaa568b97f154cc223e3969c3e98abb63cba274c5078fb7e5975ae4fc397b9256b8d339c05478470fe7f9c950d9186c57089f98df2ccc99a70c68ba
6
+ metadata.gz: c13267d4c7edea937379a915f7429b5a28c0200d27f2d314c883f5b0f9431b660e1095c7ad6cb37981c5c3f1c07496e31416dc8c33fe7aa83ab6f3fc1becc369
7
+ data.tar.gz: 6ddb8304e8151fde68e064021365d1cf84ee40759f0ec801e29e9068306550060154acd0a0b66610e9596c81faebb329d41b498c0875e762dd5b0318b33e6cc0
data/README.md CHANGED
@@ -14,12 +14,14 @@ user_name = 'username'
14
14
  password = 'password'
15
15
  space_key = 'space'
16
16
 
17
+ ##################################################################
18
+ # A connection to the client must be done before any page requests
19
+ ##################################################################
17
20
  client = ConfluenceClient.new(rest_server, user_name, password)
18
21
 
19
22
  #################################
20
23
  # Query an existing page by title
21
24
  #################################
22
-
23
25
  page = PageObject.new('page_title', space_key)
24
26
  if page.id.nil?
25
27
  puts '*** WARNING: Unable to open page: page_title'
@@ -38,7 +40,6 @@ end
38
40
  ###############################
39
41
  # Query an existing page by id
40
42
  ###############################
41
-
42
43
  page = PageObject.new(123456789, space_key)
43
44
  if page.title.nil?
44
45
  puts '*** WARNING: Unable to open page with id: 123456789'
@@ -57,7 +58,6 @@ end
57
58
  ###########################################################
58
59
  # Create a new page with a page titled "Home" as its parent
59
60
  ###########################################################
60
-
61
61
  home_page = PageObject.new('Home', space_key)
62
62
  unless home_page.id.nil?
63
63
  client.create_page_with_parent('My Page Title', space_key, 'My Page Body Content', home_page.id)
@@ -66,7 +66,6 @@ end
66
66
  #############################
67
67
  # Add an attachment to a page
68
68
  #############################
69
-
70
69
  page_obj = PageObject.new('My Page Title', space_key)
71
70
  unless page_obj.id.nil?
72
71
  img_base_name = 'my/image/location'
@@ -81,7 +80,6 @@ end
81
80
  ##################################
82
81
  # Remove an attachment from a page
83
82
  ##################################
84
-
85
83
  page_obj = PageObject.new('My Page Title', space_key)
86
84
  id = page_obj.attachment_id('my_image.png')
87
85
  if id.nil?
@@ -115,7 +113,6 @@ page_obj.save_file_attachments(page_obj.id, './')
115
113
  ###############
116
114
  # Delete a page
117
115
  ###############
118
-
119
116
  page_obj = PageObject.new('My Page Title', space_key)
120
117
  if page_obj.delete_page(page_obj.id).nil?
121
118
  puts "*** WARNING: Page with ID #{page_obj.id} was not deleted."
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{confluence-rest-api}
3
- s.version = "1.0.6"
3
+ s.version = "1.0.7"
4
4
  s.date = %q{2020-04-17}
5
5
  s.summary = %q{Ruby REST API Client to create, update, and view pages}
6
6
  s.authors = "Gregory J. Miller"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: confluence-rest-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregory J. Miller
@@ -61,8 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  requirements: []
64
- rubyforge_project:
65
- rubygems_version: 2.7.6
64
+ rubygems_version: 3.1.3
66
65
  signing_key:
67
66
  specification_version: 4
68
67
  summary: Ruby REST API Client to create, update, and view pages