This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+------------------+--------------+------+-----+---------+----------------+ | |
| Field | Type | Null | Key | Default | Extra | | |
+------------------+--------------+------+-----+---------+----------------+ | |
| id | int(11) | NO | PRI | NULL | auto_increment | | |
| tracker_id | int(11) | NO | MUL | 0 | | | |
| project_id | int(11) | NO | MUL | 0 | | | |
| subject | varchar(255) | NO | | | | | |
| description | text | YES | | NULL | | | |
| due_date | date | YES | | NULL | | | |
| category_id | int(11) | YES | MUL | NULL | | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
...F...F--------...F...F-------------------------------------------------------------------....... | |
(::) failed steps (::) | |
You have a nil object when you didn't expect it! | |
You might have expected an instance of Array. | |
The error occurred while evaluating nil.+ (NoMethodError) | |
./vendor/plugins/redmine_backlogs/app/models/story.rb:27:in `create_and_position' | |
./features/step_definitions/common_steps.rb:53 | |
./features/step_definitions/common_steps.rb:45:in `each' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p = Project.find(:first) | |
u = User.find(:first) | |
puts p.name | |
s1 = Story.new | |
s1.subject = 'Story 1' | |
s1.project = p | |
s1.tracker_id = Story.trackers[0] | |
s1.author = u |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'viewpoint' | |
require 'date' | |
require "benchmark" | |
Viewpoint::EWS::EWS.endpoint = url | |
Viewpoint::EWS::EWS.set_auth('user', 'pass') | |
ews = Viewpoint::EWS::EWS.instance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
restrict = { | |
:restriction => { | |
:is_equal_to => [ | |
{ | |
:extended_field_uRI => { | |
:distinguished_property_set_id => "PublicStrings", | |
:property_name => 'tagspace', | |
:property_type => "StringArray" | |
} | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'viewpoint' | |
require 'date' | |
require "benchmark" | |
Viewpoint::EWS::EWS.endpoint = url | |
Viewpoint::EWS::EWS.set_auth('hnse', ARGV[0]) | |
ews = Viewpoint::EWS::EWS.instance | |
calendar = Viewpoint::EWS::CalendarFolder.get_folder(:calendar) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/test/spec/calendar_item_spec.rb b/test/spec/calendar_item_spec.rb | |
index e4263d1..8f296af 100644 | |
--- a/test/spec/calendar_item_spec.rb | |
+++ b/test/spec/calendar_item_spec.rb | |
@@ -61,6 +61,15 @@ describe Viewpoint::EWS::CalendarItem, "functionality testing" do | |
@citem.remove_attendees!([@citem.required_attendees.first]).should be_true | |
end | |
+ it 'should add tags to the meeting' do | |
+ @citem.set_tags!(['tag1', 'tag2'], :tagspace => 'custom_tagspace') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 8348296a6ef78f2bfef53ad31d9d94b834a9b98a Mon Sep 17 00:00:00 2001 | |
From: friflaj <[email protected]> | |
Date: Tue, 12 Apr 2011 12:32:14 +0200 | |
Subject: [PATCH] Set namespace before parse, handle equivalent extended_uri symbols | |
--- | |
lib/model/item.rb | 10 +++++----- | |
1 files changed, 5 insertions(+), 5 deletions(-) | |
diff --git a/lib/model/item.rb b/lib/model/item.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'nokogiri' | |
class HTMLPage < Nanoc3::Filter | |
identifier :htmlpage | |
type :text | |
def run(content, params={}) | |
page = Nokogiri::HTML(content) | |
begin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -178,6 +178,8 @@ module BacklogsPlugin | |
raise "Unexpected value #{params[:copy_tasks]}" | |
end | |
+ puts action + ': ' + tasks.collect{|t| "#{t.id}: #{t.closed?}"}.join('; ') | |
+ | |
tasks.each {|t| | |
nt = RbTask.new | |
nt.copy_from(t) |